Base solution for your next web application
Open Closed

$uibModal.open is not a function #2928


User avatar
0
rferrari created

Hi

any item I click of the user menu (Top Right Corner) I get this error:

js?v=Z1h2uULy0vbPsE8-aqccnlRnUTa8VDu14Ehcx-OgGss1:58431 TypeError: $uibModal.open is not a function
    at Object.vm.changePassword (js?v=CaapLNZiW7gGNH2xfY5LQqYYZ4hzi7bIzn4vUhFnR9o1:2946)
    at fn (eval at compile (js?v=Z1h2uULy0vbPsE8-aqccnlRnUTa8VDu14Ehcx-OgGss1:58545), <anonymous>:4:264)
    at b (js?v=Z1h2uULy0vbPsE8-aqccnlRnUTa8VDu14Ehcx-OgGss1:58440)
    at e (js?v=Z1h2uULy0vbPsE8-aqccnlRnUTa8VDu14Ehcx-OgGss1:58588)
    at m.$eval (js?v=Z1h2uULy0vbPsE8-aqccnlRnUTa8VDu14Ehcx-OgGss1:58459)
    at m.$apply (js?v=Z1h2uULy0vbPsE8-aqccnlRnUTa8VDu14Ehcx-OgGss1:58459)
    at HTMLAnchorElement.<anonymous> (js?v=Z1h2uULy0vbPsE8-aqccnlRnUTa8VDu14Ehcx-OgGss1:58588)
    at HTMLAnchorElement.dispatch (js?v=Z1h2uULy0vbPsE8-aqccnlRnUTa8VDu14Ehcx-OgGss1:11)
    at HTMLAnchorElement.r.handle (js?v=Z1h2uULy0vbPsE8-aqccnlRnUTa8VDu14Ehcx-OgGss1:11)

Can you help? Thanks


2 Answer(s)
  • User Avatar
    0
    rferrari created

    Stupid injector lines inversion between $uibModal and $cookieStore... solved

    appModule.controller('common.views.layout.header',
        [
            '$rootScope',
            '$scope',
            '$state',
            '$q',
            '$location',
            '$window',
            '$uibModal',
            '$cookieStore',
            'appSession',
            'appUserNotificationHelper',
            'abp.services.app.notification',
            'abp.services.app.userLink',
            'abp.services.app.project',
            function($rootScope,
                $scope,
                $state,
                $q,
                $location,
                $window,
                $cookieStore,
                $uibModal,
                appSession,
                appUserNotificationHelper,
                notificationService,
                userLinkService,
                projectService) {
    
  • User Avatar
    0
    ismcagdas created
    Support Team

    Thanks :)