Angular module config not called

app/app.js (This sample project coming from angular-seed)

// Declare app level module which depends on views, and components
angular.module('myApp', [
config(['$locationProvider', '$routeProvider', function($locationProvider, $routeProvider) {

  $routeProvider.otherwise({redirectTo: '/view1'});

Chrome debugger will not stop at debugger, cause config is not called.

That is becuase ng-app="myApp" was missing from the root HTML element, usually at <html>:

<html lang="en" ng-app="myApp" class="no-js">

Or maybe in <div> element.

<div class="fuck-lfw" ng-app="myApp">

See for the same mistake.