Closed raman-kashyap closed 7 years ago
you need to specify params as dependency in the modalController if your example you only seem to have $scope as dependency
MyApp.controller("modalController", ["$scope", "params", function ($scope, params) {
}
Thank you very much. I appreciate it.
Playing with your example here - http://plnkr.co/edit/NILoTF5yVdneHRqQbzdm?p=preview
I tried to change the script.js code into something like below. I have more dependencies in the modalController. I believe everything works as expected but modalController does not get "params" variable injected into it. It is always "undefined". Am I missing something?
` var MyApp = angular.module('myapp', ["kendo.window", "kendo.directives"]);
MyApp.controller("modalController", ["$scope", function ($scope, params) {
}]);
MyApp.controller("mycontroller", ["$scope", "$kWindow", function ($scope, $kWindow) {
}]); `