yaxx
yaxx

Reputation: 655

Issues woriking with angularjs in vscode editor

am using angular in vscode but 'angular' is underline red saying that

angular is not defined: 'export namespace angular'

here is the code:

angular.module('kontrol', ['ngRoute'])config(['$locationProvider', '$routeProvider', '$provide', function ($locationProvider, $routeProvider) {
  $locationProvider.html5Mode(true)
  $locationProvider.hashPrefix('!')}

Upvotes: 0

Views: 149

Answers (1)

Sajeetharan
Sajeetharan

Reputation: 222722

You should define globals in .eslintrc

"globals": {
    "angular": true
}

Upvotes: 1

Related Questions