Skip to content

Instantly share code, notes, and snippets.

{
"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",
<ion-item nav-clear menu-close class="item-icon-left" href="#/app/push">
<i class="icon ion-android-notifications"></i>
Push
</ion-item>
@satsalou
satsalou / oauth-providers.list.html
Created February 15, 2017 14:37
This template is part of an Ionic 2 tutorial: http://appseed.io/node/69
<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>
@satsalou
satsalou / oauth-profile.html
Created February 15, 2017 15:13
This is part of an Ionic 2 tutorial: http://appseed.io/node/69
<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>
@satsalou
satsalou / oauth.module.ts
Last active February 16, 2017 11:32
This is part of an Ionic 2 tutorial: http://appseed.io/node/69
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
@satsalou
satsalou / oauth-providers.list.page.ts
Created February 16, 2017 11:48
This is part of an Ionic 2 tutorial: http://appseed.io/node/69
import { Component } from '@angular/core';
@Component({
templateUrl: 'oauth-providers.list.html'
})
export class OAuthProvidersListPage {
constructor() {
}
public login(source: string) {
}
}
@satsalou
satsalou / app.component.ts
Created February 16, 2017 11:59
This is part of an Ionic 2 tutorial: http://appseed.io/node/69
import { OAuthProvidersListPage } from '../pages/oauth/list/oauth-providers.list.page';
@satsalou
satsalou / app.component.ts
Created February 16, 2017 12:01
This is part of an Ionic 2 tutorial: http://appseed.io/node/69
{ title: 'OAuth', component: OAuthProvidersListPage, icon: 'log-in' }
@satsalou
satsalou / oauth.service.ts
Created February 16, 2017 12:19
This is part of an Ionic 2 tutorial: http://appseed.io/node/69
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) {
@satsalou
satsalou / oauth.provider.interface.ts
Created February 16, 2017 12:33
This is part of an Ionic 2 tutorial: http://appseed.io/node/69
export interface IOathProvider {
login(): Promise;
}