javascript - trouble with ng-modal while calling it in controller -
here steps took:
1) downloaded script file from: https://github.com/doodeec/dcom-angular-dialog
2) included in webpage , in application:
var summariesapp = angular.module('summariesapp', ['ui.bootstrap', 'ngckeditor', 'dcmodal']);
3) tried use in controller:
summariesapp.controller("singlesnpcontroller", function ($scope, $http) { $scope.stoplightmodal = dialogservice.create('../templates/test.html');
i error dialogservice resource not found. know question little simplistic have been stuck on while now. in advance.
try injecting dialogservice controller this:
summariesapp.controller("singlesnpcontroller", function ($scope, $http, dialogservice) { $scope.stoplightmodal = dialogservice.create('../templates/test.html');
take @ example here, see how injecting dialogservice controller.
Comments
Post a Comment