2
PROBLEM
I have a problem with the minification of my project when it calls the templateUrl on the route, I am using Grunt to generate my build. In my development environment it works correctly, only has this error in my build generated.
Research
I searched to see if it was no DI problem but it’s all right.
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
- html app.
- agenda
- scripts
You are using Uglify to minify?
– Lucas Venturella
That same Lucas
– ralfting
By chance your local application runs on root, and the client runs on a subdirectory?
– Lucas Venturella
Runs only local at the moment and yes root.
– ralfting