Skip to content

Commit

Permalink
fix: include README.md in published package (#1)
Browse files Browse the repository at this point in the history
  • Loading branch information
bobbyg603 authored Feb 22, 2022
1 parent 139148a commit 1488817
Show file tree
Hide file tree
Showing 5 changed files with 258 additions and 43 deletions.
3 changes: 1 addition & 2 deletions .releaserc
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,7 @@
[
"@semantic-release/npm",
{
"pkgRoot": "dist/ngx-toggle",
"npmPublish": false
"pkgRoot": "dist/ngx-toggle"
}
]
]
Expand Down
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,19 +10,19 @@ Install `@bobbyg603/ngx-toggle`:
npm i @bobbyg603/ngx-toggle
```

Import the `NgxToggle` module in each module that uses `<ngx-toggle>`:
Import the `NgxToggleModule` module in each module that uses `<ngx-toggle>`:

[app.module.ts](https://github.com/bobbyg603/ngx-toggle/blob/81b7859846914832575a083b2741d88733e695d7/projects/ngx-toggle-example/src/app/app.module.ts#L14)
[app.module.ts](https://github.com/bobbyg603/ngx-toggle/blob/main/projects/ngx-toggle-example/src/app/app.module.ts)
```ts
import { NgAnimatedCounterModule } from '@bugsplat/ng-animated-counter';
import { NgxToggleModule } from '@bobbyg603/ngx-toggle';

@NgModule({
declarations: [
AppComponent
],
imports: [
BrowserModule,
NgAnimatedCounterModule,
NgxToggleModule
],
providers: [],
bootstrap: [AppComponent]
Expand All @@ -34,7 +34,7 @@ export class AppModule { }

Add `<ngx-toggle>` to your component's template:

[app.component.ts](https://github.com/bobbyg603/ngx-toggle/blob/81b7859846914832575a083b2741d88733e695d7/projects/ngx-toggle-example/src/app/app.component.html#L12)
[app.component.ts](https://github.com/bobbyg603/ngx-toggle/blob/139148ac2d6f18f69777835686fbfd44766d58d1/projects/ngx-toggle-example/src/app/app.component.html#L12)
```ts
<ngx-toggle
id="toggle-example"
Expand Down
Loading

0 comments on commit 1488817

Please sign in to comment.