Skip to content

Commit

Permalink
Merge pull request #19 from rubenCodeforges/feature/bugfixes-refactoring
Browse files Browse the repository at this point in the history
Removed example , due to breaking changes
  • Loading branch information
rubenCodeforges authored Sep 23, 2017
2 parents d02bbe8 + 204ba3f commit c015db8
Show file tree
Hide file tree
Showing 85 changed files with 33 additions and 72,339 deletions.
14 changes: 5 additions & 9 deletions README.MD
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,6 @@ in a Angular 4+ project.
npm install ng-gapi
```

[Example](https://github.com/rubenCodeforges/angular2-google-api/tree/master/examples)

[Demo](http://codeforges.com/google-tasks/)

#### Usage

To use the `ng-gapi` simply add `GoogleApiModule` to your module imports
Expand All @@ -40,8 +36,8 @@ interface ClientConfig {
```
##### Example:
```typescript
let gapiClientConfig: ClientConfig = {
clientId: "CLIENT_ID",
let gapiClientConfig: NgGapiClientConfig = {
client_id: "CLIENT_ID",
discoveryDocs: ["https://analyticsreporting.googleapis.com/$discovery/rest?version=v4"],
scope: [
"https://www.googleapis.com/auth/analytics.readonly",
Expand Down Expand Up @@ -73,9 +69,9 @@ Usage example :
```typescript
export class FooService {
constructor(gapiService: GoogleApiService) {
gapiService.onLoad(()=> {
gapiService.onLoad().subscribe(()=> {
// Here we can use gapi

});
}
}
Expand Down Expand Up @@ -140,7 +136,7 @@ Configuration is easy to use. The GoogleApiModule has a static method which sets
As shown in the example you simply provide a configuration object of type `ClientConfig`.
```typescript
{
clientId: "your client id",
client_id: "your client id",
discoveryDocs: ["url to discovery docs", "another url"],
scope: "space separated scopes"
}
Expand Down
35 changes: 0 additions & 35 deletions examples/.gitignore

This file was deleted.

47 changes: 0 additions & 47 deletions examples/README.md

This file was deleted.

64 changes: 0 additions & 64 deletions examples/angular-cli.json

This file was deleted.

14 changes: 0 additions & 14 deletions examples/e2e/app.e2e-spec.ts

This file was deleted.

11 changes: 0 additions & 11 deletions examples/e2e/app.po.ts

This file was deleted.

16 changes: 0 additions & 16 deletions examples/e2e/tsconfig.json

This file was deleted.

43 changes: 0 additions & 43 deletions examples/karma.conf.js

This file was deleted.

Loading

0 comments on commit c015db8

Please sign in to comment.