Render a directive

Asked

Viewed 25 times

2

I have a directive that when I load the page it is rendered, the content of this directive will undergo some changes during use.

I wanted a way that by pressing a button to reload this directive to its default content.

  • I don’t know anything about angular but maybe the Memento design will help.

  • can put the code to analyze?

  • When you create directives, you can create variables by reference on scope and would use something like: <meu-componente algo="ctrl.variavelNoController">. Hence just changing the variavelNoController You should think about the directive. But if your directive can’t use that because of its specifications, then it would be easier if you shared your code to analyze.

  • I managed through Avascript same, I only created another div element I added the right and put over the previous, Thank you very much for the help guys.

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.