Last active
July 16, 2018 13:50
-
-
Save whisher/59841c2b3d936702c1cd6170af38de40 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
| import { NgModule } from '@angular/core'; | |
| import { Routes, RouterModule } from '@angular/router'; | |
| import { AboutusComponent } from './aboutus/aboutus.component'; | |
| import { ContactusComponent } from './contactus/contactus.component'; | |
| import { HomeComponent } from './home/home.component'; | |
| import { PortfolioComponent } from './portfolio/portfolio.component'; | |
| import { ShowcaseComponent } from './showcase/showcase.component'; | |
| const routes: Routes = [{ | |
| path: '', | |
| component: HomeComponent | |
| },{ | |
| path: 'contactus', | |
| component: ContactusComponent | |
| },{ | |
| path: 'aboutus', | |
| component: AboutusComponent | |
| },{ | |
| path: 'portfolio', | |
| component: PortfolioComponent | |
| },{ | |
| path: 'showcase', | |
| component: ShowcaseComponent | |
| }, | |
| { | |
| path: '**', redirectTo: '' | |
| } | |
| ]; | |
| @NgModule({ | |
| declarations: [ | |
| AboutusComponent, | |
| ContactusComponent, | |
| HomeComponent, | |
| PortfolioComponent, | |
| ShowcaseComponent | |
| ], | |
| imports: [RouterModule.forRoot(routes)], | |
| exports: [ | |
| RouterModule | |
| ] | |
| }) | |
| export class AppRoutingModule { } | |
| COSI EVITI | |
| import { BrowserModule } from '@angular/platform-browser'; | |
| import { NgModule } from '@angular/core'; | |
| import { AppRoutingModule } from './app-routing.module'; | |
| import { AboutusComponent } from './aboutus/aboutus.component'; | |
| import { ContactusComponent } from './contactus/contactus.component'; | |
| import { ContactsComponent } from './contacts/contacts.component'; | |
| import { PortfolioComponent } from './portfolio/portfolio.component'; | |
| import { ShowcaseComponent } from './showcase/showcase.component'; | |
| import { AppComponent } from './app.component'; | |
| @NgModule({ | |
| declarations: [ | |
| AppComponent, | |
| AboutusComponent, | |
| ContactusComponent, | |
| PortfolioComponent, | |
| ShowcaseComponent | |
| ], | |
| imports: [ | |
| BrowserModule, | |
| AppRoutingModule | |
| ], | |
| providers: [], | |
| bootstrap: [AppComponent] | |
| }) | |
| export class AppModule { } | |
| E IL AppModule viene | |
| import { BrowserModule } from '@angular/platform-browser'; | |
| import { NgModule } from '@angular/core'; | |
| import { AppRoutingModule } from './app-routing.module'; | |
| import { AppComponent } from './app.component'; | |
| @NgModule({ | |
| declarations: [ | |
| AppComponent, | |
| ], | |
| imports: [ | |
| BrowserModule, | |
| AppRoutingModule | |
| ], | |
| providers: [], | |
| bootstrap: [AppComponent] | |
| }) | |
| export class AppModule { } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment