googlearchive / generator-angularfire

Yeoman generator for AngularFire: Angular + Firebase apps
191 stars 52 forks source link

yo angular:route function error #51

Closed clickdigital closed 9 years ago

clickdigital commented 9 years ago

When the above function is run the result is placed in the wrong location in app.js causing the solution to break with the following result

.when('/test', { templateUrl: 'views/test.html', controller: 'TestCtrl' }) 'use strict';

/**

katowulf commented 9 years ago

The correct command here would be yo angularfire:route. Assuming you used the correct command, this could happen if you've made an edit to the file which makes it impossible for the generator to tell where the content should be inserted.

katowulf commented 9 years ago

Also, yo angularfire:route places the routes into routes.js/coffee. So this looks like an invalid command.