angularjs - I am trying to creating a polling app on the mean stack. I think my routing is messed up but I am not sure -


i trying create polling app described in tutorial here.

i have step 2 finished, , start step 3(once application running properly) incorporate db portion. application not behaving application listed in tutorial though.

i have scanned code numerous times , debugged , still cant seem catch throwing off. when run application runs fine, none of partials being displayed provided in inital index.html view, showing blank navbar.

i have provided git repository. if has moment , can take @ it. thank time in advance.

some of key things fixed in pull request:

  1. you need include angular-route.js separate file now, , have module depend on ngroute.
  2. you missing quotes around first $routeprovider in following line:

    .config(['$routeprovider',function($routeprovider){

  3. you need register controllers using name (string) module, rather using global functions.

    app.controller('controllername', function ($scope, ...) { ... });

  4. you forgot reference few of js files need in index.html using <script> tags.

there other small things, see pr full details. changed way bower components done.


Comments

Popular posts from this blog

ruby on rails - RuntimeError: Circular dependency detected while autoloading constant - ActiveAdmin.register Role -

c++ - OpenMP unpredictable overhead -

javascript - Wordpress slider, not displayed 100% width -