Permalink
Browse files

Integrate with ngx-quicklink

  • Loading branch information...
mgechev committed Dec 25, 2018
1 parent 0723de1 commit 33ea101c7d84bb5ca086f107148bbc958659f83f
Showing with 16 additions and 3 deletions.
  1. +1 −0 package.json
  2. +3 −2 src/app/app-routing.module.ts
  3. +4 −1 src/app/shared/shared.module.ts
  4. +8 −0 yarn.lock
@@ -22,6 +22,7 @@
"@angular/core": "6.0.7",
"@angular/forms": "6.0.7",
"@angular/platform-browser": "6.0.7",
"ngx-quicklink": "../ng-quicklinks/dist/src",
"@angular/platform-browser-dynamic": "6.0.7",
"@angular/router": "6.0.7",
"core-js": "^2.4.1",
@@ -1,5 +1,6 @@
import { NgModule } from '@angular/core';
import { Routes, RouterModule, PreloadAllModules } from '@angular/router';
import { Routes, RouterModule } from '@angular/router';
import { QuicklinkStrategy } from 'ngx-quicklink';

const routes: Routes = [
{
@@ -25,7 +26,7 @@ const routes: Routes = [
// preload all modules; optionally we could
// implement a custom preloading strategy for just some
// of the modules (PRs welcome 😉)
preloadingStrategy: PreloadAllModules
preloadingStrategy: QuicklinkStrategy
})],
exports: [RouterModule]
})
@@ -8,14 +8,16 @@ import { ArticleListComponent, ArticleMetaComponent, ArticlePreviewComponent } f
import { FavoriteButtonComponent, FollowButtonComponent } from './buttons';
import { ListErrorsComponent } from './list-errors.component';
import { ShowAuthedDirective } from './show-authed.directive';
import { QuicklinkModule } from 'ngx-quicklink';

@NgModule({
imports: [
CommonModule,
FormsModule,
ReactiveFormsModule,
HttpClientModule,
RouterModule
RouterModule,
QuicklinkModule
],
declarations: [
ArticleListComponent,
@@ -27,6 +29,7 @@ import { ShowAuthedDirective } from './show-authed.directive';
ShowAuthedDirective
],
exports: [
QuicklinkModule,
ArticleListComponent,
ArticleMetaComponent,
ArticlePreviewComponent,

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.

0 comments on commit 33ea101

Please sign in to comment.