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:
- you need include
angular-route.js
separate file now, , have module depend onngroute
. you missing quotes around first
$routeprovider
in following line:.config(['$routeprovider',function($routeprovider){
you need register controllers using name (string) module, rather using global functions.
app.controller('controllername', function ($scope, ...) { ... });
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
Post a Comment