how to refresh page in angular 2

后端 未结 6 1451
情话喂你
情话喂你 2021-02-02 08:19

I have created one router link as below. This router link loads ProductsStartComponent and then this component loads several other components using ngif and not via

6条回答
  •  青春惊慌失措
    2021-02-02 09:00

    The simplest possible solution I found was:

    In your markup:

    Reload
    

    and in your component typescript file:

    constructor(
            private location: Location
      ) { }
    

提交回复
热议问题