Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class JokeComponent {
- @Input('joke') data: Joke;
- constructor() {
- console.log(`new - data is ${this.data}`);
- }
- ngOnChanges() {
- console.log(`ngOnChanges - data is ${this.data}`);
- }
- ngOnInit() {
- console.log(`ngOnInit - data is ${this.data}`);
- }
- ngDoCheck() {
- console.log("ngDoCheck")
- }
- ngAfterContentInit() {
- console.log("ngAfterContentInit");
- }
- ngAfterContentChecked() {
- console.log("ngAfterContentChecked");
- }
- ngAfterViewInit() {
- console.log("ngAfterViewInit");
- }
- ngAfterViewChecked() {
- console.log("ngAfterViewChecked");
- }
- ngOnDestroy() {
- console.log("ngOnDestroy");
- }
- }
Add Comment
Please, Sign In to add comment