@peerboard/angular-components
Advanced tools
Comparing version 0.0.3 to 0.0.4
{ | ||
"name": "@peerboard/angular-components", | ||
"version": "0.0.3", | ||
"version": "0.0.4", | ||
"peerDependencies": { | ||
@@ -5,0 +5,0 @@ "@angular/common": "^8.2.14", |
### Usage | ||
1. Install package | ||
1. Install the package | ||
```bash | ||
@@ -12,3 +12,3 @@ yarn add @peerboard/angular-components | ||
2. Import module | ||
2. Import the module | ||
```typescript | ||
@@ -40,2 +40,3 @@ // yourapp.module.ts | ||
<div> | ||
<div *ngIf="error != ''">{{error}}</div> | ||
<div *ngIf="!authReady && !forumReady"> | ||
@@ -62,5 +63,2 @@ <!-- show loader --> | ||
[onTitleChanged]="handleTitleChanged" | ||
[embedSDKURL]="embedSDKURL" | ||
[baseURL]="baseURL" | ||
> | ||
@@ -96,6 +94,3 @@ </peerboard-forum> | ||
hideMenu = false; | ||
embedSDKURL = 'http://static.local.is/embed/embed.js'; | ||
baseURL = `http://peerboard.lvh.me`; | ||
ngAfterViewInit() { | ||
@@ -126,3 +121,3 @@ // Get the auth token from your backend api. | ||
this.forumReady = true; | ||
}; | ||
} | ||
@@ -132,3 +127,3 @@ handleTitleChanged = (title) => { | ||
window.document.title = 'Forum: ' + title; | ||
}; | ||
} | ||
@@ -135,0 +130,0 @@ handlePathChanged = (path) => { |
190729
155