Blame view

src/app/app.module.ts 1.25 KB
b140204c   Anan Sangthongtum   .
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
import { BrowserModule } from '@angular/platform-browser';
import { NgModule } from '@angular/core';


import { AppComponent } from './app.component';
import { RouterModule, Routes } from '@angular/router';
import { TinymceComponent }     from './components/tinymce.component';
import { FroalaComponent }     from './components/froala.component';
import { PageNotFoundComponent }     from './components/pageNotFound.component';
import { EditorModule } from '@tinymce/tinymce-angular';
import { FroalaEditorModule, FroalaViewModule } from 'angular-froala-wysiwyg';
import { FormsModule } from '@angular/forms';
const appRoutes: Routes = [
  { path: '', component: TinymceComponent },
  { path: 'tinymce', component: TinymceComponent },
  { path: 'froala', component: FroalaComponent },
  { path: '**', component: PageNotFoundComponent }
];

@NgModule({
  declarations: [
    AppComponent,
    TinymceComponent,
    FroalaComponent,
    PageNotFoundComponent
  ],
  imports: [
    FormsModule,
    FroalaEditorModule.forRoot(), FroalaViewModule.forRoot(),
    EditorModule,
    RouterModule.forRoot(
      appRoutes,
      { enableTracing: true } // <-- debugging purposes only
    ),
    BrowserModule
  ],
  providers: [],
  bootstrap: [AppComponent]
})
export class AppModule { }