The ability to reply to discussions is limited to PRO members. Want to join in the discussion? Click here to subscribe now.

The config function

The config function

2:55
This episode explains the config phase of an AngularJS application and how is it special in regards to $routeProvider (routing configuration) and providers in general.
Watch this lesson now
Avatar
egghead.io

This episode explains the config phase of an AngularJS application and how is it special in regards to $routeProvider (routing configuration) and providers in general.

Avatar
Alexander

Hello, I'm wondering about the following thing:

I have Project structure with an Index.html code and many directories where I put html templates and corresponding css, and js files.
in js files I have .config with routs and .controller with a controller.

The problem is:
When I develop my application everything works just fine, but when I build my app using Grunt the "public" folder appears with index.html and uglified js files. After building my /paths are broken and templates do not work anymore.

How to get rid of that? Thank you

In reply to egghead.io
Avatar
John

It sounds like you'll have to configure your Grunt build deploy directories to what you really want them to be. I don't know what you're Grunt tasks look like, but telling the task to place your files in the directory you expect should be fairly straight-forward.

In reply to Alexander
HEY, QUICK QUESTION!
Joel's Head
Why are we asking?