Skip to content

Instantly share code, notes, and snippets.

@umutyerebakmaz
Created April 7, 2023 13:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save umutyerebakmaz/7c55b73e2393dd91175f3e008e966b61 to your computer and use it in GitHub Desktop.
Save umutyerebakmaz/7c55b73e2393dd91175f3e008e966b61 to your computer and use it in GitHub Desktop.
Dumb Component Example
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