DigitMagazine

Example 1 - Inline template specification

Dec 17th, 2016
93
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.62 KB | None | 0 0
  1. import {Component} from 'angular2/core'
  2. @Component({
  3. selector: 'digit',
  4. providers: [],
  5. template:`
  6. <div>
  7. <h2>{{name}}</h2>
  8. </div>
  9. `,
  10. directives: []
  11. })
  12. export class App {
  13. constructor(){
  14. this.name = 'Inline',
  15. }
  16. }
Add Comment
Please, Sign In to add comment