Reputation: 901
I'm new to Angular JS. I have set up a plunker to demonstrate the situation:
http://plnkr.co/edit/P90BIfQRcnh1xTX0xqWT?p=preview
On the modal dialog gets closed, I need to show the span next to the continue button. How should I proceed?
Thanks for reading.
Upvotes: 1
Views: 376
Reputation: 8976
I've made a few changes to the plunk to make it work:
ng-controller
in modal.html, since you've binded ModalController
to <body>
already$scope.done = false
ng-show="done"
in the "Work completed" span, so the span's shown/hidden states are determined by the "done" modelmodel.continue()
, set "done" to true to show the "Work completed" spanUpdated plunk is here: http://plnkr.co/edit/DRvXlRP2UOwGaxHjcrfN
Upvotes: 1