Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import { Component } from '@angular/core';
- import { ChildComponent } from './child.component';
- @Component({
- selector: 'digit',
- styles : [`
- .parent {
- background : #c7c7c7;
- padding: 20px;
- }
- `],
- template: `
- <div class="parent">
- <h1>{{name}}</h1>
- <child-component></child-component>
- </div>
- `,
- directives : [ChildComponent]
- })
- export class AppComponent {
- name = "Parent Component"
- }
Add Comment
Please, Sign In to add comment