I am using this directives https://embed.plnkr.co/plunk/XArO6p in my app. I want to refresh the data in this directive whenever the user revisits the the same page in my app. how can I do this?
Asked
Active
Viewed 66 times
1 Answers
0
I think this should be implemented as a component. https://docs.angularjs.org/guide/component
using a controller with a constructor, you can invoke any initialization you need for the data.

urirot
- 279
- 1
- 10
-
but here if you see link function is used for DOM manipulation and according to angular component it does not provide link function. Have a look at this https://stackoverflow.com/a/35572648/8645679. – vishal Jan 28 '19 at 05:32