reload a child component in angular

Solutions on MaxInterview for reload a child component in angular by the best coders in the world

showing results for - "reload a child component in angular"
Yannick
30 Jun 2016
1import { Component, Input, OnChanges } from "@angular/core";
2
3@Component({
4  selector: "child-component",
5  templateUrl: "./child-component.html"
6})
7export class MyComponent implements OnChanges {
8  @Input() someInput: string;
9
10  constructor() {}
11
12  ngOnChanges() {
13  /**********THIS FUNCTION WILL TRIGGER WHEN PARENT COMPONENT UPDATES 'someInput'**************/
14  //Write your code here
15   console.log(this.someInput);
16  }   
17 
18}
19
Vincenzo
28 Nov 2016
1<child-component [someInput]="inputValue"></child-component>
2
queries leading to this page
angular force reload child componentangular re render child componentangular refresh child componenthow to reload children component in angular 8reload child component angularrefresh component on change angularangular change value in child componentrefresh child component from parent angular angular how to reload a child componentreload a component with child component angularangular cause child component to refresh angular 10how to refresh child component from parent component in angular 8only reload child component angular 8how to reload child app selector in angular 8stop reload child component from parent angularreload list from child to parent angularangular refresh child component from parentrefresh parent component from child component angularhow to refresh a child component in angularrefresh child component from parent angular 6angular 9 parent reloadupdate child component from parent exampleangular 8 reload child component examplehow to refresh child component angularangular reload child componentangular refresh parent to childhow to reload component on angular navigate to childhow to refresh child componentrefresh parent component to rerender from child angularangular 5 reload child componenthow to refresh parent component from child component in angular 8reload a child component in angularangular reloading when using child componentreload a component with child components angularhow to re render child compnenent angular on pagehow to refresh child component from parent component in angular 7how to reload child component in angular 8refresh child component from parent component angularhow to reload child component as many times in angular 8how to reload a child component in angularangular force child component to refreshif parent component is refreshed then child component will refresh in angular 3fangular 6 reload child componenthow to reload child component in angular 6how to refresh the child component on click in angularhow to reload a child component in angulaereload a child component angular when neededangular rebuild parent component on input changehow to reload child component in angular angular view child reload componenthow to refresh child component from parent component angularangular how to reload child componentreload parent component from child component angularhow to reload a div in angularangular force recreate child componentreload parent component from child component angular 1how to force the child component to refresh in angularforce reload child component angularangular 2 refresh child componentangular reload parent component from childreload page in child component angularreload child componentrefresh parent component to from child angularchild component force parent directive refreshangular child component refreshrefresh component through child angular 6how to refresh parent component from child component in angular 6how to refresh child component from parent component in angular 6how to load child component in angular 8 after browser refeeshreload component when parent clicked angjularangular reload childangular 9 reload parent from childupdate child component from parent component angular 7reload a child component in parent component angular when neededhow to reload child controller in angularjsreload child component from parent angularforce a orefresh parent component in child angularreload specific div angularangular refresh parent component from childhow to re render a child component in angularrefresh a child template in angular 7angular stop re render child componenthow to reload the child component in angularre render child component angularhow to reload or refresh only child component in angular 8refresh child component angularwhat happens after refreshing browser in angular and how to render chlld componentsrefresh complete child component in angularhow to reload child component without refresh page angularangular reload the parnet component from a child componentreload a child component in angular