Guest User

Untitled

a guest
Nov 23rd, 2017
61
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.58 KB | None | 0 0
  1. import { Component, NgModule, Input, ViewEncapsulation } from '@angular/core'
  2. import { BrowserModule } from '@angular/platform-browser'
  3. import { CommonModule } from '@angular/common';
  4.  
  5. @Component({
  6. selector: 'hello-world',
  7. templateUrl: `./hello-world.html`,
  8. styleUrls: [ './hello-world.scss' ],
  9. host: {
  10. class: 'hello-world'
  11. },
  12. encapsulation: ViewEncapsulation.None
  13. })
  14. export class HelloWorld {
  15. @Input() name = 'Angular'
  16. }
  17.  
  18. @NgModule({
  19. imports: [BrowserModule],
  20. declarations: [HelloWorld],
  21. entryComponents: [HelloWorld]
  22. })
  23. export class HelloWorldModule {
  24. ngDoBootstrap(){}
  25. }
Add Comment
Please, Sign In to add comment