I want to create simple pop-up dialog in AngularJS using bootstrap-ui's $dialog directive.
I get $dialog undefined, when I try to inject into my controller. Can someone provide hint on "How to properly inject $dialog" into the following design and invoke it to create a pop-up dialog?
Thanks in advance
index.js:
angular.module('myapp', ['myapp.core','myapp.templates','ui.router', 'ui.bootstrap',
'angularChart', 'angularjs-dropdown-multiselect', 'smart-table', 'angularModalService']);
Page Controller:
(function() {
'use strict';
angular.module('myapp').controller('Page3Controller', Page3Controller);
function Page3Controller(
$scope,
$dialog, // undefined
Page3Service,
Utility) {