Hello.  I'm fairly new to Angular.  I just attended a full day session for 
beginners.  I have a small, working Angular app as an example.  I have 
three problems.  One, I'm really just learning how to use the browser 
debugging.  Two, there's the error message I am getting, which is coming 
from the angular router and it's telling me that the controller I am 
calling is not a function.  I believe that the issue is that somehow the 
site is not seeing the files that contain the function.  BTW, I use Visual 
Studio because I'm a Microsoft C# guy.  


<https://lh3.googleusercontent.com/-MCia8ZUKCpg/VlIw-a7-wXI/AAAAAAAAAC0/ghPHZ00gIlY/s1600/Pic1.png>

You can see here that influence.controller is clearly here in the same 
folder that customer.controller is (no problem finding 
customer.controller).  Yet when I run, notice that none of the influence 
files are listed in the sources.  I don't understand that (problem #3) and 
I think it has something to do with why it is saying that there's no 
function.

<https://lh3.googleusercontent.com/-whzZhROTLQw/VlIyBreKjPI/AAAAAAAAAC4/JU_QnxEO4-w/s1600/Pic2.png>

here's my routing:

function configureRoutes($locationProvider, $routeProvider) {

    $locationProvider.html5Mode(true);

    $routeProvider
      .when('/', {
        controller: 'CustomerController',
        templateUrl: 'customer.html',
        controllerAs: 'vm'
      })
      .when('/details/:id', {
        controller: 'CustomerDetailController',
        templateUrl: 'customer-detail.html',
        controllerAs: 'vm'
      })
      .when('/shows/', {
          controller: 'UpcomingShowsController',
          templateUrl: 'upcoming-shows.html',
          controllerAs: 'vm'
      })
      .when('/influences/', {
          controller: 'InfluenceController',
          templateUrl: 'Influence.html',
          controllerAs: 'vm'
      })
      .otherwise({ redirectTo: '/' });
  }
})()

Thanks for looking.

Ed

-- 
You received this message because you are subscribed to the Google Groups 
"AngularJS" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.

Reply via email to