Created
April 7, 2023 13:39
-
-
Save umutyerebakmaz/7c55b73e2393dd91175f3e008e966b61 to your computer and use it in GitHub Desktop.
Dumb Component Example
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import{ Component, Input, OnInit } from ‘@angular/core’; | |
@Component({ | |
selector: ‘app-dumb’, | |
templateUrl: ‘./dumb.component.html’, | |
styleUrls: [‘./dumb.component.css’] | |
}) | |
export class DumbComponent implements OnInit { | |
@Input(‘car’) car: Car[]; | |
constructor() { } | |
ngOnInit() { | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment