Advertisement
Guest User

Untitled

a guest
Aug 17th, 2017
51
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.32 KB | None | 0 0
  1. import { Component, OnInit, Input } from '@angular/core';
  2.  
  3. @Component({
  4. selector: 'app-child',
  5. templateUrl: '<ul><li *ngFor="let i of numbers">{{i}}</li></ul>',
  6. styleUrls: ['./child.component.css']
  7. })
  8. export class ChildComponent implements OnInit {
  9. @Input() numbers: number[];
  10.  
  11. constructor() {
  12. }
  13.  
  14. ngOnInit() {
  15. }
  16.  
  17. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement