I am initializing firebase
instance = firebase.initializeApp(config);
then checking for a user...
firebase.auth().currentUser
and there is no user there, but a few seconds later, my listener fires to let me know I have a user.
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<meta name="viewport" content="width=device-width"> | |
<title>JS Bin</title> | |
</head> | |
<body> | |
<script src="https://cdnjs.cloudflare.com/ajax/libs/vue/2.0.3/vue.js"></script> |
import { getSnapshot } from 'mobx-state-tree'; | |
import { assert, expect } from 'chai'; | |
//import { Users } from './../src/store'; | |
import 'mocha' | |
import { Users, User, Boutique, ClothingItem } from './../src/store'; | |
describe('Boutique', function () { | |
let b = null; |
import { NavController } from 'ionic-angular/index'; | |
import { Component, ViewChild } from "@angular/core"; | |
@Component({ | |
template:` | |
<ion-header> | |
<ion-navbar primary> | |
<ion-title> | |
Ionic 2 |
(function() { | |
'use strict'; | |
angular | |
.module('YourApp') | |
.factory('googleAnalyticsService', googleAnalyticsService); | |
function googleAnalyticsService($window) { | |
var plugin; | |
var service = {}; |
I am initializing firebase
instance = firebase.initializeApp(config);
then checking for a user...
firebase.auth().currentUser
and there is no user there, but a few seconds later, my listener fires to let me know I have a user.
cordova.define("cordova-plugin-mapbox.Mapbox", function(require, exports, module) { | |
var exec = require("cordova/exec"); | |
module.exports = { | |
show: function (options, successCallback, errorCallback) { | |
cordova.exec(successCallback, errorCallback, "Mapbox", "show", [options]); | |
}, | |
hide: function (options, successCallback, errorCallback) { | |
cordova.exec(successCallback, errorCallback, "Mapbox", "hide", [options]); |
<ul *ngFor="let item of projects | async"> | |
<li class="text"> | |
{{item.name}} | |
</li> | |
<p> | |
{{(item.metadata | async)?.moreData}} | |
</p> | |
<p> | |
{{(item.metadata | async)?.stockPrice}} | |
</p> |
/** | |
* React Native 0.24.1 | |
* | |
* Tested on iOS Only | |
*/ | |
'use strict'; | |
var React = require('react-native'); | |
var { | |
AppRegistry, |
This is a sample application based on off Angular2 to show the use of http in an application.
In this example, we are using https://developer.nutritionix.com/for nutrition information; showing how to access REST API using ngFor directive for rendering the data.
A Pen by aaron k saunders on CodePen.