My App.js :--
var app = angular.module('catalogModule', ['ngRoute']).
config(['$routeProvider', '$locationProvider', function ($routeProvider, $locationProvider) {
$routeProvider.
when('/Home', {
templateUrl: '/Home/GET',
controller: 'Home'
}).
otherwise({
redirectTo: '/Home'
});
}]);
My Controller looks like :--
app.controller('catalogModule', function ($scope, $routeParams, $location, $timeout) {
// Some code
});
// if i pass slick and another dependency in module like
var app = angular.module('MyApp', ['ngRoute','slick']).
i am getting error which is this , Please guide where m doing wrong
My App.js :-- var app = angular.module('catalogModule', ['ngRoute']). config(['$routeProvider', '$locationProvider', function ($routeProvider, $locationProvider) { $routeProvider. when('/Home', { templateUrl: '/Home/GET', controller: 'Home' }). otherwise({ redirectTo: '/Home' }); }]);
My Controller looks like :-- app.controller('catalogModule', function ($scope, $routeParams, $location, $timeout) { // Some code }); // if i pass slick and another dependency in module like var app = angular.module('MyApp', ['ngRoute','slick']). i am getting error which is this , Please guide where m doing wrong