First of all, I'm sorry to ask simple like below.
I have no code to show you.
Maybe this seems like a kind of rude question, but I expect somebody will give me some examples.
I've succeeded to link directive and controller.
I built modal like this link.
Add element dynamically by using Modal
In my original code, modal have a button to close itself.
What I want is when I click this button, all variables related with directive to be initialized.
But I don't know how.
Help me please. Thanks in advance for any help.
ng2?orthe old one?. Use$scope.$broadcast('eventsomethingreset')then catch it on your directive$scope.$on('eventsomethingreset', func () { //reset stuff })'ifng1else ifng2use RxJS Observable