PROBLEM
I'm having a minification problem in my project when it calls the templateUrl in the route, I'm using grunt to generate my build. In my development environment it works fine, it only has this error in my build.
Search
I searched to see if it was no ID problem but everything is correct.
CODE
app.js
angular
.module('myModule', [
'ngResource',
'ngRoute',
'myModule.agenda',
'myModule.agenda.controller',
'myModule.agenda.services',
'myModule.agenda.filters'
])
.config(function ($routeProvider) {
$routeProvider
.when('/', {
templateUrl: 'app/scripts/agenda/views/welcome.html',
controller: 'mainCtrl'
})
});
Folders
- App
- scripts
- agenda
- views
- main.html
- views
- app.html
- agenda
- scripts