I am Trying to create dynamic templateUrls with angular component. But i get this error as:
Error: [$injector:unpr] Unknown provider: eProvider <- e
angular
.module('myApp')
.component('fieldComponent', {
templateUrl: function ($element, $attrs) {
return $attrs.templateUrl || 'some/path/default.html'
},
controller:fieldComponentController,
controllerAs:'vm',
$routeConfig: [
{path: '/dashboard', component: 'dashboardApp', name: 'Dashboard', useAsDefault: true}
]
});
As files getting minified, its throwing error as above. So where & how to i inject this dependencies?