Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import { Component, NgModule, Input, ViewEncapsulation } from '@angular/core'
- import { BrowserModule } from '@angular/platform-browser'
- import { CommonModule } from '@angular/common';
- @Component({
- selector: 'hello-world',
- templateUrl: `./hello-world.html`,
- styleUrls: [ './hello-world.scss' ],
- host: {
- class: 'hello-world'
- },
- encapsulation: ViewEncapsulation.None
- })
- export class HelloWorld {
- @Input() name = 'Angular'
- }
- @NgModule({
- imports: [BrowserModule],
- declarations: [HelloWorld],
- entryComponents: [HelloWorld]
- })
- export class HelloWorldModule {
- ngDoBootstrap(){}
- }
Add Comment
Please, Sign In to add comment