workylab/materialize-angular

View on GitHub
src/app/app-routing.module.ts

Summary

Maintainability
A
0 mins
Test Coverage
/**
 * @license
 * Copyright Workylab. All Rights Reserved.
 *
 * Use of this source code is governed by an MIT-style license that can be
 * found in the LICENSE file at https://raw.githubusercontent.com/workylab/materialize-angular/master/LICENSE
 */

import { RouterModule, Routes } from '@angular/router';
import { ContactsComponent } from './modules/contacts/contacts.component';
import { HomeComponent } from './modules/home/home.component';
import { NgModule } from '@angular/core';

const appRoutes: Routes = [
  { component: HomeComponent, path: '' },
  { component: ContactsComponent, path: 'contacts' }
];

@NgModule({
  exports: [RouterModule],
  imports: [RouterModule.forRoot(appRoutes)]
})

export class AppRoutingModule {}