Reputation: 12112
I'm learning to make my first angularJS app, and am having trouble getting the data to bind. The code is at https://github.com/findjashua/angular
In views/index.jade, {{understand}}
is not getting the value of $scope.understand
from public/javascripts/maincontroller.js
Any ideas what the problem is?
Upvotes: 0
Views: 550
Reputation: 2482
Your problem is not with AngularJS: when specifying the static folder on Express, you don't need to put "public" in your assets URL. Your javascript files would look like this:
script(src='/javascripts/app.js', type='text/javascript')
script(src='/javascripts/maincontroller.js', type='text/javascript')
You could had figured it using Chrome Dev Tools.
Upvotes: 1