DigitMagazine

Code to update file app.ts

Dec 17th, 2016
119
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.44 KB | None | 0 0
  1. import {Component} from '@angular/core'
  2.  
  3. import {Sizer} from './sizer'
  4.  
  5. @Component (
  6. {
  7. selector: 'digit',
  8. provider: [],
  9. template:`
  10. <div>
  11. <p [sizer]="200">Hi {{name}}</p>
  12. </div>
  13. `,
  14. directives: [Sizer]
  15. }
  16. )
  17. export class App {
  18. constructor() {
  19. this.name = 'digit'
  20. }
  21. }
Add Comment
Please, Sign In to add comment