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.
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.
Browser other questions tagged javascript html angularjs
You are not signed in. Login or sign up in order to post.
I don’t know anything about angular but maybe the Memento design will help.
– Oralista de Sistemas
can put the code to analyze?
– Felipe Duarte
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 thevariavelNoController
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.– Alisson
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.
– Erick Zanetti