Angular -dialog-service $ injector: modulerr

Using 5.2.11 https://github.com/me-conroy/angular-dialog-service/tree/v5.2.11

Angular 1.4.8

I add ui.bootstrap and dialogs.main to the application file:

var FuelTeamworkHelperApp = angular.module( "FuelTeamworkHelperApp", [ "ui.bootstrap", "dialogs.main", "ui.router", "ncy-angular-breadcrumb", "ngResource", "angular-loading-bar", "ngAnimate", "angular-growl", "ngPrettyJson", "angularMoment" ] );

However, I get the error message:

Uncaught Error: [$injector:modulerr] http://errors.angularjs.org/1.4.8/$injector/modulerr?p0=FuelTeamworkHelperA…alhost%3A2804%2Fassets%2Fjs%2Fvendor%2Fangular%2Fangular.min.js%3A19%3A463)

The scripts are all in HTML, and the browser loads them.

I tried using "dialogs.controllers", which works, although the documentation is not how you intend to use it.

Not sure how to get it in my controllers later, what name should I use? Just "dialogs" do not work.

angular
    .module( "FuelTeamworkHelperApp" )
    .controller( "AdminSettingsController", AdminSettingsController );

//---

AdminSettingsController.$inject = [ "$scope", "$rootScope", "$state", "$stateParams", "$filter", "$resource", "$q", "growl", "dialogs", "FuelTeamworkHelperConfig", "AppSettings", "SowCustomListSections" ];

function AdminSettingsController ( $scope, $rootScope, $state, $stateParams, $filter, $resource, $q, growl, dialogs, FuelTeamworkHelperConfig, AppSettings, SowCustomListSections ) {

...

+4
source share

Source: https://habr.com/ru/post/1622786/