angularjs - Popup Controller function call in angular.js -
I'm using it because it sounds popular, I'm calling the popup dialog as follows: $ scope.upload = function () {createDialogService ('simpleModal.html', {id: 'simpleDialog', title: 'India to upload video', background: true, controller: 'Trafficist Controller', success: {label: 'success', FN: function () {console.log ('simple mode off');}}}); }; And in my simpleModal.html only the following (a form) & lt; Div class = "row-fluid" & gt; it happens. & Lt; form ng-submit = "addNewVideo ()" & gt; & Lt; Input type = "text" ng-model = "newVid.videoURL" placeholder = "video url here" & gt; & Lt; Br / & gt; & Lt; Input type = "text" ng-model = "newVid.locality" placeholder = "locality" & gt; & Lt; Br / & gt; & Lt; Input type = "text" ng-model = "newVid.town" placeholder = "c...