I need to separate controllers into groups, so that each group of controllers operate as a unit.
/controllers
admin.dashboard.js
admin.articles.js
admin.categories.js
/views:
_adminlayout.html
/admin
dashboard.html
articles.html
categories.html
/partials
modal-form-article.html
modal-form-categories.html
Reason: when submitting an article if user needs to add a new category. I would like to call "modal.form.categories" for quick access.
Problem:
1) At the moment I am using only one controller "admin.js".
2) @{model.blahh} or @{repository.blahh} or @{options(repository.blahh, model.blahh, 'name', 'id'} all fail at the /partial level as undefined.
How can I split this into multiple controllers and maintain all in relation to the view "/admin"?
Thanks.