Skip to content

Commit

Permalink
Readme
Browse files Browse the repository at this point in the history
  • Loading branch information
attus74 committed Nov 4, 2020
1 parent ff3af7f commit 3c72149
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 21 deletions.
37 changes: 17 additions & 20 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,23 +4,20 @@

This library was generated with [Angular CLI](https://github.com/angular/angular-cli) version 10.2.0.

## Code scaffolding

Run `ng generate component component-name --project cookie-service` to generate a new component. You can also use `ng generate directive|pipe|service|class|guard|interface|enum|module --project cookie-service`.
> Note: Don't forget to add `--project cookie-service` or else it will be added to the default project in your `angular.json` file.
## Build

Run `ng build cookie-service` to build the project. The build artifacts will be stored in the `dist/` directory.

## Publishing

After building your library with `ng build cookie-service`, go to the dist folder `cd dist/cookie-service` and run `npm publish`.

## Running unit tests

Run `ng test cookie-service` to execute the unit tests via [Karma](https://karma-runner.github.io).

## Further help

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.
In module.ts:
```ts
import {CookieServiceModule} from '@attus/cookie-service';

imports: [
CookieServiceModule,
],
```

In component.ts:
```ts
import {CookieServiceService} from '@attus/cookie-service';

const a: string = this.cookieService.get(cookie_name);
this.cookieService.set(cookie_name, cookie_value);
this.cookieService.delete(cookie_name);
```
2 changes: 1 addition & 1 deletion src/public-api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@
*/

export * from './lib/cookie-service.service';
export * from './lib/cookie-service.component';
export * from './lib/cookie-service.module';
export * from './lib/cookie-token-service.service';

0 comments on commit 3c72149

Please sign in to comment.