From 6c034d8efc795c77a1e0f59a021ed532203b4998 Mon Sep 17 00:00:00 2001 From: Alexander Kislov Date: Mon, 5 Feb 2024 20:50:08 +0200 Subject: [PATCH] Update package version and demo --- package.json | 2 +- .../components/header/header.component.html | 2 +- .../src/app/pages/props/snippets.ts | 19 +++++++++++++++++-- projects/ngx-tippy-wrapper/package.json | 2 +- 4 files changed, 20 insertions(+), 5 deletions(-) diff --git a/package.json b/package.json index 3e70762..93ba067 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "tippy-wrapper", - "version": "6.2.2", + "version": "6.3.0", "scripts": { "ng": "ng", "start": "ng serve", diff --git a/projects/ngx-tippy-demo/src/app/components/header/header.component.html b/projects/ngx-tippy-demo/src/app/components/header/header.component.html index dd28a21..a07fe43 100644 --- a/projects/ngx-tippy-demo/src/app/components/header/header.component.html +++ b/projects/ngx-tippy-demo/src/app/components/header/header.component.html @@ -22,7 +22,7 @@

ngx-tippy-wrapper

diff --git a/projects/ngx-tippy-demo/src/app/pages/props/snippets.ts b/projects/ngx-tippy-demo/src/app/pages/props/snippets.ts index d6a4cab..63c93af 100644 --- a/projects/ngx-tippy-demo/src/app/pages/props/snippets.ts +++ b/projects/ngx-tippy-demo/src/app/pages/props/snippets.ts @@ -32,7 +32,9 @@ export class PropsComponent { const PROPS_DEFAULT = `import { NGX_TIPPY_CONFIG } from 'ngx-tippy-wrapper'; +// Component providers @Component({ + ... providers: [ { provide: NGX_TIPPY_CONFIG, @@ -44,8 +46,21 @@ const PROPS_DEFAULT = `import { NGX_TIPPY_CONFIG } from 'ngx-tippy-wrapper'; } ] }) -export class DemoComponent { -}`; + +// Module providers +@NgModule({ + ... + providers: [ + { + provide: NGX_TIPPY_CONFIG, + useValue: { + ... + }, + } + ] +}) + +`; export const SNIPPETS = { props_template: { diff --git a/projects/ngx-tippy-wrapper/package.json b/projects/ngx-tippy-wrapper/package.json index 235e797..36bb4ed 100644 --- a/projects/ngx-tippy-wrapper/package.json +++ b/projects/ngx-tippy-wrapper/package.json @@ -1,6 +1,6 @@ { "name": "ngx-tippy-wrapper", - "version": "6.2.2", + "version": "6.3.0", "description": "Angular wrapper for tippy.js", "keywords": [ "angular tooltip",