Oleg Omelchenko Oleg Omelchenko - 1 year ago 86
AngularJS Question

AngularJS app initializes but doesn't work

I have started a pet project with AngularJS and Gulp. The code is available on github.

After building the project my

folder looks like this:


When I run browserSync in
folder, everything seems to work fine: the paths are injected correctly,
global variable is available in chrome console, and ng-app directive is on its place. However, if I try to create a controller or config an app, the scripts inside the functions don't run.

That's the first time when I actually wrote
entirely by myself, based on various tutorials. I suspect that the problem may be in improper gulp configuration, but I'm not sure.

Answer Source

in index.html change ng-app to ng-app="app" add browser-sync in dependencies. other than that everything is fine.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download