JSFiddle - React, Tailwind, and code Playground
by Pavlo
HTML
<my-app>
</my-app>
JavaScript
import {Component,ViewChild,OnInit} from 'angular2/core';
@Component({
selector: 'my-app',
template: `
<h2>App Component</h2>
<my-parent></my-parent>
`,
directives:[AProposComponent]
})
export class AProposComponent implements OnInit {
@ViewChild('text', { read: ElementRef }) text: ElementRef
constructor() {}
ngOnInit() {
let textEl = this.text.nativeElement
let typed = new Typed(textEl, {
strings: ['npm install...^1000<br> `installing components...` ^1000 <br> `Fetching from source...`'],
typeSpeed: 40,
backSpeed: 0,
loop: true
})
}
}