Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import { Component, OnInit, Input } from '@angular/core';
- @Component({
- selector: 'app-child',
- templateUrl: '<ul><li *ngFor="let i of numbers">{{i}}</li></ul>',
- styleUrls: ['./child.component.css']
- })
- export class ChildComponent implements OnInit {
- @Input() numbers: number[];
- constructor() {
- }
- ngOnInit() {
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement