Hi Guys,
I read the other threads on this,but I'm still confused.
We are building a web site with .net mvc. We have one complex entity, lets say it an "Office". An office has staff, resources, budgets etc. A user can have many offices to manage. We have other areas of the system already built with just .Net. I have a .net view with a list of offices. When the user clicks on one they're sent to the spa for that Office. The request goes to a .net controller called OfficeController. The Index method takes an Id. I want its view to be an Angular spa.
My angular stuff is in a folder called 'app' at the root of the website. Within the spa I have links to other views of the spa. I want it to have routes like this.
I'm using John Papa's HotTowel demo as a starting point for my spa. In his routing config. He has this...
return [
{
url: '/',
config: {
templateUrl: 'app/dashboard/dashboard.html',
title: 'dashboard',
settings: {
nav: 1,
content: '<i class="fa fa-dashboard"></i> Dashboard'
}
}
}, {
url: '/admin',
config: {
title: 'admin',
templateUrl: app/admin/admin.html',
settings: {
nav: 2,
content: '<i class="fa fa-lock"></i> Admin'
}
}
}
];
When I can access these views via the the browser with http://www.blah.com/Office/Index/73/#!/ and http://www.blah.com/Office/Index/73/#!/Admin . Do I need to "pass in" something like "Office/Index/73/#!/" to angular and build dynamic routes?
Thanks for reading
Brian