This repository has been archived by the owner on Oct 7, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 85
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
closes #2076
- Loading branch information
Showing
24 changed files
with
93 additions
and
85 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
import {NgModule} from '@angular/core'; | ||
|
||
import {SharedModule} from '../../shared.module'; | ||
import {RoutingModule, ROUTE_DECLARATIONS} from './routing.module'; | ||
|
||
@NgModule({ | ||
imports: [ | ||
SharedModule, | ||
RoutingModule | ||
], | ||
declarations: [ROUTE_DECLARATIONS] | ||
}) | ||
export class MenuModule {} |
6 changes: 3 additions & 3 deletions
6
...ponents/text-field-demo/routing.module.ts → ...src/app/components/menu/routing.module.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
import {NgModule} from '@angular/core'; | ||
import {Routes, RouterModule} from '@angular/router'; | ||
|
||
import {Api, Examples, Sass, TextField} from './text-field'; | ||
|
||
export const ROUTE_DECLARATIONS = [ | ||
Api, | ||
Examples, | ||
Sass, | ||
TextField | ||
]; | ||
|
||
const ROUTES: Routes = [ | ||
{ | ||
path: '', component: TextField, | ||
children: [ | ||
{path: '', redirectTo: 'api'}, | ||
{path: 'api', component: Api}, | ||
{path: 'sass', component: Sass}, | ||
{path: 'examples', component: Examples} | ||
] | ||
} | ||
]; | ||
|
||
@NgModule({ | ||
imports: [RouterModule.forChild(ROUTES)], | ||
exports: [RouterModule] | ||
}) | ||
export class RoutingModule {} |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
29 changes: 0 additions & 29 deletions
29
demos/src/app/components/top-app-bar-demo/routing.module.ts
This file was deleted.
Oops, something went wrong.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
import {NgModule} from '@angular/core'; | ||
import {Routes, RouterModule} from '@angular/router'; | ||
|
||
import {Api, Examples, Sass, TopAppBar} from './top-app-bar'; | ||
|
||
export const ROUTE_DECLARATIONS = [ | ||
Api, | ||
Examples, | ||
Sass, | ||
TopAppBar | ||
]; | ||
|
||
const ROUTES: Routes = [ | ||
{ | ||
path: '', component: TopAppBar, | ||
children: [ | ||
{path: '', redirectTo: 'api'}, | ||
{path: 'api', component: Api}, | ||
{path: 'sass', component: Sass}, | ||
{path: 'examples', component: Examples} | ||
] | ||
} | ||
]; | ||
|
||
@NgModule({ | ||
imports: [RouterModule.forChild(ROUTES)], | ||
exports: [RouterModule] | ||
}) | ||
export class RoutingModule {} |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters