title: unable to load resource - 404 Angularjs
body: <pre><code>(function(){
    'use strict';
    angular
      .module('myNinjaApp.user')
      .config(config)
  
      config.$inject = ['$routeProvider']
  
  
    function config($routeProvider)
    {
        $routeProvider
        .when('/user/home',{
          templateUrl:'./views/home.html'
        }).when('/user/directory',{
          templateUrl:'./views/directory.html'
        }).otherwise({
          redirectTo:'/user/home'
        })
    }
  })();
  </code></pre>
  
  <p>The files <code>home.html</code> and <code>directory.html</code> are in the same path but in a folder- views.
  But the error is unable to load resource.</p>