moufking / tp-angular

tp
https://tp-tp.herokuapp.com
0 stars 0 forks source link

Format du code #1

Closed nioperas06 closed 6 years ago

nioperas06 commented 6 years ago

Exemple:

import {Routes} from "@angular/router";
import {LibraryComponent} from './library/library.component';
import {SearchComponent} from './search/search.component';
import {BookComponent} from './book/book.component';
import {BookListComponent} from './book-list/book-list.component';

export const routes: Routes = [

    {path: 'library',component: LibraryComponent},
    {path: 'book/:bookId',component: BookComponent },
    {path: 'search',component: SearchComponent },
    {path: '', redirectTo: 'library', pathMatch: 'full'}

];

Et cela se répète dans plusieurs fichiers (book.ts) par exemple.

moufking commented 6 years ago

déja fait