v-modalAngularJS 对话框
v-modal 是简单、灵活并且漂亮的 AngularJS 对话框模块。
使用示例:
angular.module('myApp', ['vModal']) .factory('myModal', function (vModal) { return vModal({ controller: 'MyModalController', controllerAs: 'myModalCtrl', templateUrl: 'my-modal.html' }); }) .controller('MyModalController', function (myModal) { this.close = myModal.deactivate; }) .controller('AppController', function (myModal) { this.show = myModal.activate; });
评论