added custom player

added routing with two routes: home and player

moved most of app component to main component. app component currently just manages the top toolbar
This commit is contained in:
Isaac Grynsztein
2020-02-15 02:13:21 -05:00
parent d595de5786
commit 8e7bb4ba3b
18 changed files with 778 additions and 451 deletions

View File

@@ -0,0 +1,15 @@
import { NgModule } from '@angular/core';
import { RouterModule, Routes } from '@angular/router';
import { MainComponent } from './main/main.component';
import { PlayerComponent } from './player/player.component';
const routes: Routes = [
{ path: 'home', component: MainComponent },
{ path: 'player', component: PlayerComponent},
{ path: '', redirectTo: '/home', pathMatch: 'full' },
];
@NgModule({
imports: [RouterModule.forRoot(routes, { useHash: true })],
exports: [RouterModule]
})
export class AppRoutingModule { }