ngx-pagememory
Advanced tools
Comparing version 13.0.0 to 13.0.1
{ | ||
"name": "ngx-pagememory", | ||
"version": "13.0.0", | ||
"type": "module", | ||
"version": "13.0.1", | ||
"peerDependencies": { | ||
@@ -8,4 +9,5 @@ "@angular/common": "^13.1.0", | ||
}, | ||
"dependencies": { | ||
"tslib": "^2.3.0" | ||
"schematics": "./schematics/collection.json", | ||
"ng-add": { | ||
"save": "dependencies" | ||
}, | ||
@@ -31,3 +33,6 @@ "module": "fesm2015/ngx-pagememory.mjs", | ||
}, | ||
"sideEffects": false | ||
"sideEffects": false, | ||
"dependencies": { | ||
"tslib": "^2.3.0" | ||
} | ||
} |
@@ -1,24 +0,62 @@ | ||
# NgxPagememory | ||
<p align="center"> | ||
<img width="20%" height="20%" src="./logo.png"> | ||
</p> | ||
This library was generated with [Angular CLI](https://github.com/angular/angular-cli) version 13.1.0. | ||
<br /> | ||
## Code scaffolding | ||
[![ngx-pagememory](https://github.com/dkreider/ngx-pagememory/actions/workflows/ngx-pagememory.yml/badge.svg)](https://github.com/dkreider/ngx-pagememory/actions/workflows/ngx-pagememory.yml) | ||
[![PRs](https://img.shields.io/badge/PRs-welcome-brightgreen.svg?style=flat-square)]() | ||
[![All Contributors](https://img.shields.io/badge/all_contributors-1-orange.svg?style=flat-square)](#contributors-) | ||
Run `ng generate component component-name --project ngx-pagememory` to generate a new component. You can also use `ng generate directive|pipe|service|class|guard|interface|enum|module --project ngx-pagememory`. | ||
> Note: Don't forget to add `--project ngx-pagememory` or else it will be added to the default project in your `angular.json` file. | ||
## Build | ||
A lightweight Angular library that remembers the last page a user visited when they leave an Angular application and them routes them to it when the re-open it. | ||
Run `ng build ngx-pagememory` to build the project. The build artifacts will be stored in the `dist/` directory. | ||
## Publishing | ||
### Installation | ||
After building your library with `ng build ngx-pagememory`, go to the dist folder `cd dist/ngx-pagememory` and run `npm publish`. | ||
``` | ||
ng add ngx-pagememory | ||
``` | ||
## Running unit tests | ||
## Usage | ||
Run `ng test ngx-pagememory` to execute the unit tests via [Karma](https://karma-runner.github.io). | ||
Import the `NgxPagememoryModule` into your `AppModule`. You can configure it as shown below: | ||
## Further help | ||
```ts | ||
import { NgxPagememoryModule } from 'ngx-pagememory'; | ||
To get more help on the Angular CLI use `ng help` or go check out the [Angular CLI Overview and Command Reference](https://angular.io/cli) page. | ||
@NgModule({ | ||
declarations: [AppComponent], | ||
imports: [ | ||
NgxPagememoryModule.forRoot() | ||
], | ||
bootstrap: [AppComponent] | ||
}) | ||
export class AppModule { | ||
} | ||
``` | ||
## Contributors ✨ | ||
Thanks goes to these wonderful people ([emoji key](https://allcontributors.org/docs/en/emoji-key)): | ||
<!-- ALL-CONTRIBUTORS-LIST:START - Do not remove or modify this section --> | ||
<!-- prettier-ignore-start --> | ||
<!-- markdownlint-disable --> | ||
<table> | ||
<tr> | ||
<td align="center"><a href="https://www.danielk.tech/"><img src="https://avatars.githubusercontent.com/u/11043868?v=4" width="100px;" alt=""/><br /><sub><b>Daniel Kreider</b></sub></a><br /><a href="https://github.com/dkreider/ngx-pagememory/commits?author=dkreider" title="Code">💻</a></td> | ||
</tr> | ||
</table> | ||
<!-- markdownlint-restore --> | ||
<!-- prettier-ignore-end --> | ||
<!-- ALL-CONTRIBUTORS-LIST:END --> | ||
This project follows the [all-contributors](https://github.com/all-contributors/all-contributors) specification. | ||
Contributions of any kind welcome! | ||
## Credits | ||
- <a href="https://www.flaticon.com/free-icons/brain" title="brain icons">Brain icons created by Vitaly Gorbachev - Flaticon</a> |
28196
18
272
62
Yes