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

Popular posts from this blog

c++ - QTextObjectInterface with Qml TextEdit (QQuickTextEdit) -

javascript - angular ng-required radio button not toggling required off in firefox 33, OK in chrome -

xcode - Swift Playground - Files are not readable -