Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- example.com/customer1
- example.com/customer2
- etc..
- app.customer1domain.net -> example.com
- app.customer1domain.net (should rewrite to example.com/customer1)
- @NgModule({
- imports: [
- RouterModule.forRoot([
- {
- path: ":customerName",
- component: CustomerWrapperComponent,
- children: [
- {
- path: "",
- component: CustomerComponent
- },
- {
- path: "content",
- component: ContentComponent
- },
- {
- path: "about",
- component: AboutComponent
- }
- ...
- let customerName = this.route.snapshot.params["customerName"];
- // User customerName to load customer specific content
- http://example.com/customer1
- http://app.customer1domain.net
Add Comment
Please, Sign In to add comment