0

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?

1 Answer 1

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.

1
  • 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 stackoverflow.com/a/35572648/8645679.
    – vishal
    Commented Jan 28, 2019 at 5:32

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.