-
-
Notifications
You must be signed in to change notification settings - Fork 180
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add support for standalone components (#484)
* feat: add `provideMarkdown` as a new way to configure ngx-markdown * chore: run ng generate @angular/core:standalone * chore: run ng generate @angular/core:standalone * chore: run ng generate @angular/core:standalone * chore: move routing to the new standalone * chore: move to the new provideMarkdown * chore: cleanup the code and fix errors * chore: address review comments * Remove MarkdownModule deprecation * Remove unnecessary added line between get/set * Fix demo anchor scrolling * Add provideMarkdown documentation in README.md * Add provideMarkdown documentation in demo --------- Co-authored-by: jfcere <[email protected]>
- Loading branch information
1 parent
49a22eb
commit e1245d4
Showing
57 changed files
with
465 additions
and
520 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
import { Routes } from '@angular/router'; | ||
|
||
export const appRoutes: Routes = [ | ||
{ | ||
path: 'get-started', | ||
loadComponent: () => import('./get-started/get-started.component'), | ||
data: { label: 'Get Started' }, | ||
}, | ||
{ | ||
path: 'cheat-sheet', | ||
loadComponent: () => import('./cheat-sheet/cheat-sheet.component'), | ||
data: { label: 'Cheat Sheet' }, | ||
}, | ||
{ | ||
path: 'syntax-highlight', | ||
loadComponent: () => import('./syntax-highlight/syntax-highlight.component'), | ||
data: { label: 'Syntax Highlight' }, | ||
}, | ||
{ | ||
path: 'bindings', | ||
loadComponent: () => import('./bindings/bindings.component'), | ||
data: { label: 'Bindings' }, | ||
}, | ||
{ | ||
path: 'plugins', | ||
loadComponent: () => import('./plugins/plugins.component'), | ||
data: { label: 'Plugins' }, | ||
}, | ||
{ | ||
path: 're-render', | ||
loadComponent: () => import('./rerender/rerender.component'), | ||
data: { label: 'Re-render' }, | ||
}, | ||
{ | ||
path: '**', | ||
redirectTo: 'get-started', | ||
}, | ||
]; |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.