我是MVC的新手,Angular JS需要在angular js中创建简单的弹出窗口,但无法做到这一点,
我的看法就像
<div id="Personal">
<div class="portlet box green">
<div class="portlet-title">
<div class="caption">
{{ 'Cancelled Visits' | translate }}
</div>
</div>
<div class="form-group">
<!-- <label class="col-md-3 control-label">{{ 'VisitID' | translate }} </label>-->
<div class="col-md-9">
<div class="input-group">
<div class="input-group-btn">
<input type="text" class="form-control" placeholder="{{ 'Enter visit Ids comma separated' | translate }}" ng-model="ids">
</div>
</div>
</div>
</div>
</div>
我的控制器是
(function () {
var app = angular.module('mysteryShopper');
app.controller('MyVisitsController', MyVisitsController);
MyVisitsController.$inject = ['$scope', 'utilitiesService', 'tasksService'];
function MyVisitsController($scope, utilitiesService, tasksService) {
$scope.pagesCount = 0;
$scope.page = 0;
$scope.pagesize = 10;
$scope.path = utilitiesService.getFullPath();
$scope.UpdateVisitStatus = UpdateVisitStatus;
function UpdateVisitStatus (page) {
if (page != undefined) {
$scope.page = page;
}
tasksService.getVisitSummery($scope.ids).then(function (d) {
var result = JSON.parse(d.data.data);
$scope.data= result.result;
});
Here I want to code for popup with Yes No Condition
var value = $scope.ids;
}
})();
当我尝试使用此链接http://www.javasavvy.com/angularjs-modal-window-tutorial/时 加载所需的模块第3步时出现错误
希望您的建议 谢谢