angular-stormpath
Advanced tools
Comparing version 0.1.2 to 0.1.3
@@ -5,4 +5,4 @@ # Change Log | ||
<a name="0.1.2"></a> | ||
## [0.1.2](https://github.com/stormpath/stormpath-sdk-angular/compare/v0.1.1...v0.1.2) (2017-01-27) | ||
<a name="0.1.3"></a> | ||
## [0.1.3](https://github.com/stormpath/stormpath-sdk-angular/compare/v0.1.2...v0.1.3) (2017-01-30) | ||
@@ -12,4 +12,3 @@ | ||
* **http:** Fix compatibility with Angular versions < 2.3 ([b3ae345](https://github.com/stormpath/stormpath-sdk-angular/commit/b3ae345)) | ||
* **logout:** Fix logout fails when no access token found ([6fcaeda](https://github.com/stormpath/stormpath-sdk-angular/commit/6fcaeda)) | ||
* **angular:** Change to peerDependencies and allow Angular 2.0.0+ ([cbf9637](https://github.com/stormpath/stormpath-sdk-angular/commit/cbf9637)) | ||
@@ -29,13 +28,2 @@ | ||
<a name="0.1.2"></a> | ||
## [0.1.2](https://github.com/stormpath/stormpath-sdk-angular/compare/v0.1.1...v0.1.2) (2017-01-27) | ||
### Bug Fixes | ||
* **http:** Fix compatibility with Angular versions < 2.3 ([b3ae345](https://github.com/stormpath/stormpath-sdk-angular/commit/b3ae345)) | ||
* **logout:** Fix logout fails when no access token found ([6fcaeda](https://github.com/stormpath/stormpath-sdk-angular/commit/6fcaeda)) | ||
<a name="0.1.1"></a> | ||
@@ -42,0 +30,0 @@ ## [0.1.1](https://github.com/stormpath/stormpath-sdk-angular/compare/v0.1.0...v0.1.1) (2017-01-20) |
{ | ||
"name": "angular-stormpath", | ||
"version": "0.1.2", | ||
"version": "0.1.3", | ||
"description": "Stormpath Components for Angular.", | ||
@@ -109,6 +109,6 @@ "main": "./dist/umd/stormpath-sdk-angular.js", | ||
}, | ||
"dependencies": { | ||
"@angular/core": "^2.4.0", | ||
"@angular/forms": "^2.4.0", | ||
"@angular/http": "^2.4.0", | ||
"peerDependencies": { | ||
"@angular/core": "^2.0.0", | ||
"@angular/forms": "^2.0.0", | ||
"@angular/http": "^2.0.0", | ||
"rxjs": "^5.0.2", | ||
@@ -115,0 +115,0 @@ "ng2-webstorage": "1.4.3", |
@@ -62,2 +62,20 @@ # Stormpath Angular SDK | ||
If you're using a version of Angular < 2.3, extending AuthPortComponent won't work for you. As an alternative, you can inject the `Stormpath` service into your component, subscribe to `stormpath.user$` and implement `logout()` yourself. | ||
```typescript | ||
import { Account, Stormpath } from 'angular-stormpath'; | ||
... | ||
export class AppComponent { | ||
user$: Observable<Account | boolean>; | ||
constructor(private stormpath: Stormpath) { | ||
this.user$ = this.stormpath.user$; | ||
} | ||
logout(): void { | ||
this.stormpath.logout(); | ||
} | ||
} | ||
``` | ||
You may also find it useful to view the [demo source](https://github.com/stormpath/stormpath-sdk-angular/blob/master/demo/app.component.ts). | ||
@@ -64,0 +82,0 @@ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
11705441
228
281
- Removed@angular/core@^2.4.0
- Removed@angular/forms@^2.4.0
- Removed@angular/http@^2.4.0
- Removedangular2-cookie@^1.2.6
- Removedng2-webstorage@1.4.3
- Removedrxjs@^5.0.2