javascript - how to use a Modal in my simple AngularJs controller -


i'm not able load modal service simple rookie angular controller example, i've included plunker below. can suggest i'm doing wrong? appreciated! thanks

http://plnkr.co/edit/vvymsrmvg5dzeqpnvwsq?p=preview

code snippet

  app.controller('maincontroller', ['$scope', 'fservice', 'angularmodalservice', function($scope, fservice, angularmodalservice) {     $scope.show = function() {     angularmodalservice.showmodal({         templateurl: 'modal.html',         controller: "modalcontroller"     }).then(function(modal) {         modal.element.modal();         modal.close.then(function(result) {             $scope.message = "you said " + result;         });     });   };   } 

i found helpful. hope too.

http://weblogs.asp.net/dwahlin/building-an-angularjs-modal-service


Comments

Popular posts from this blog

css - SVG using textPath a symbol not rendering in Firefox -

Java 8 + Maven Javadoc plugin: Error fetching URL -

order - Notification for user in user account opencart -