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
{ | |
"$schema": "./node_modules/@angular/cli/lib/config/schema.json", | |
"project": { | |
"name": "ng-test-project" | |
}, | |
"apps": [ | |
{ | |
"root": "src", | |
"outDir": "dist", | |
"assets": [ |
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 { Page } from './app.po'; | |
describe('App', () => { | |
let page: Page; | |
beforeEach(() => { | |
page = new Page(); | |
}); | |
describe('default screen', () => { |
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 { async, TestBed } from '@angular/core/testing'; | |
import { IonicModule, Platform } from 'ionic-angular'; | |
import { StatusBar } from '@ionic-native/status-bar'; | |
import { SplashScreen } from '@ionic-native/splash-screen'; | |
import { MyApp } from './app.component'; | |
import { | |
PlatformMock, | |
StatusBarMock, |
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 { NgZone, Renderer } from '@angular/core'; | |
export class ConfigMock { | |
public get(): any { | |
return ''; | |
} | |
public getBoolean(): boolean { | |
return true; |
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"; | |
import { GoogleDriveProvider } from './../../providers/google-drive/google-drive'; | |
@Component({ | |
templateUrl: 'build/pages/home/home.html', | |
providers: [ GoogleDriveProvider ] | |
}) | |
export class HomePage { | |
persons: Array<any>; | |
dataId: 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 {Injectable} from '@angular/core'; | |
import {Http} from '@angular/http'; | |
import 'rxjs/add/operator/map'; | |
/* | |
Generated class for the GoogleDrive provider. | |
See https://angular.io/docs/ts/latest/guide/dependency-injection.html | |
for more info on providers and Angular 2 DI. | |
*/ |
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
LocalNotifications.schedule( { | |
id: 1, // Number, used as unique identifier | |
title: 'Sample Local Notification', // String, 1st row of notification | |
text: 'This is a sample local notification.', // String, | |
// 2nd row of the notification | |
/* WARNING: USING THE DEFAULT SOUND | |
'res://platform_default' | |
DOES NOT PLAY SOUND IN THE EMULATOR */ | |
sound: 'file://audio/notification.wav', // Uri, path to sound file | |
/* TIME SET TO TEN SECONDS |
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
$cordovaLocalNotification.schedule({ | |
id: note.id, // Number, used as unique identifier | |
at: note.at, // Date or Number, time | |
text: note.text, // String, 1st row of notification | |
title: note.title, // String, 2nd row of the notification | |
sound: 'res://platform_default',// Uri, path to sound file | |
badge: 1, // Number, appear on app icon | |
data: 'hello=world' // String, objects as encoded JSON | |
}).then(function ( result ) { | |
console.log(note.title + ' Notification Set'); |
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
https://api.iontelevision.com/1.1/gigya-login?username=owPbHTpDWFI%2B47bkOJLn5MK0TcrcaeXe53rLStbY0ObaWyVA&password=zAN1dTpDWFLP%2B9Z4kSD%2FmMKiYQY%3D&apikey=API_KEY&secret=SECRET_KEY |