0.0.1 • Published 6 years ago

xuyu.identityserver.angular2 v0.0.1

Weekly downloads
-
License
MIT
Repository
-
Last release
6 years ago

In your angular project:

// app.module.ts
import { IdentityServerClient } from 'xuyu.identityserver.angular2';
@NgModule({
    providers: [ IdentityServerClient ],
})
export class AppModule { }


// demo.ts
import { Component, OnInit } from '@angular/core';
import { IdentityServerClient } from 'xuyu.identityserver.angular2';
@Component({
  selector: 'demo',
})
export class DemoComponent implements OnInit {

  constructor(private client:IdentityServerClient) { }

  ngOnInit() {
    //this.client.{apis}
  }
}