This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"movies": [ | |
{ | |
"id": 1, | |
"thumb": "http://skounis-dev.s3.amazonaws.com/mobile-apps/supermodular/batman-v-superman.jpg", | |
"title": "Batman v Superman: Dawn of Justice", | |
"body": "Fearing that the actions of Superman are left unchecked, Batman takes on the Man of Steel, while the world wrestles with what kind of a hero it really needs." | |
}, { | |
"id": 2, | |
"thumb": "http://skounis-dev.s3.amazonaws.com/mobile-apps/supermodular/civil-war.jpg", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<ion-header> | |
<ion-navbar> | |
<button ion-button menuToggle> | |
<ion-icon name="menu"></ion-icon> | |
</button> | |
<ion-title>OAuth providers</ion-title> | |
</ion-navbar> | |
</ion-header> | |
<ion-content> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<ion-header> | |
<ion-navbar> | |
<button ion-button menuToggle> | |
<ion-icon name="menu"></ion-icon> | |
</button> | |
<ion-title>Profile</ion-title> | |
</ion-navbar> | |
</ion-header> | |
<ion-content> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { IonicModule } from 'ionic-angular'; | |
import { NgModule } from '@angular/core'; | |
import { OAuthProvidersListPage } from './list/oauth-providers.list.page'; | |
@NgModule({ | |
imports: [IonicModule], | |
declarations: [ | |
OAuthProvidersListPage | |
], | |
entryComponents: [ | |
OAuthProvidersListPage |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { Component } from '@angular/core'; | |
@Component({ | |
templateUrl: 'oauth-providers.list.html' | |
}) | |
export class OAuthProvidersListPage { | |
constructor() { | |
} | |
public login(source: string) { | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { OAuthProvidersListPage } from '../pages/oauth/list/oauth-providers.list.page'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ title: 'OAuth', component: OAuthProvidersListPage, icon: 'log-in' } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { Injectable, Injector } from '@angular/core'; | |
import { FacebookOauthProvider } from './facebook/facebook-oauth.provider'; | |
import { IOathProvider } from './oauth.provider.interface'; | |
import { GoogleOauthProvider } from './google/google-oauth.provider'; | |
import { OAuthToken } from './models/oauth-token.model'; | |
@Injectable() | |
export class OAuthService { | |
private oauthTokenKey = 'oauthToken'; | |
private injector: Injector; | |
constructor(injector: Injector) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export interface IOathProvider { | |
login(): Promise; | |
} |