Updating Modal with controller model


#1

I am trying to use dynamic content inside my modal using angular controller model.

My codepen: http://codepen.io/anon/pen/dpJxa

I am trying to increment $scope.count whenever user clicks Create contact button inside the modal. This count will be used to populate first name in the modal.

Even though the count is increasing which is shown in alert, it is not reflecting the modal. How can I listen for the changes in my model and show it in modal.

Thanks in advance.


#3

Has anybody tried updating model for Modals?