Closed madskristensen closed 10 years ago
This doesn't work
var myApp = angular .module('nameApp', ['ngRoute']) .config(['$routeProvider', '$locationProvider', function ($routeProvider, $locationProvider) { $locationProvider.html5Mode(true); }]); myApp.controller('nameController', ['$scope', '$location', function ($scope, $location) { // $location. // doesn't work }]);
Whereas this does:
var myApp = angular .module('nameApp', ['ngRoute']); myApp.controller('nameController', ['$scope', '$location', function ($scope, $location) { // $location. // It works!! }]);
Fixed in commit https://github.com/jmbledsoe/angularjs-visualstudio-intellisense/commit/ed7a1e8a3823007cf4d343d79a9356b2177dbfb3
This doesn't work
Whereas this does: