AngularJS - Controller & ngRoute -
evening,
i'm using ngroute + 1.3.5 @ moment, have admin page has it's own admin view , controller.
i don't want 'admin.js' script reference:
<script src="/resources/javascript/controllers/ctrladmin.js"></script>
-in index.html page - ng-view resides. want route referenced (without injecting controller).
.when('/admin', { templateurl: '/resources/html/views/admin.html' // mom, no controller reference........ })
if include reference 'admin.js' file within view file, let's call 'admin.html', 'nan function undefined'. if put in index.html page, great. i'd rather not, angular trying resolve references before loads, reasonable; there way cleanly?
issue found here, seems didn't quite search enough.
Comments
Post a Comment