Skip to content

Instantly share code, notes, and snippets.

@EdL
EdL / Ionic Gulp Build
Last active April 7, 2017 03:49
Ionic Framework - gulp build
This shows the folder layout for source and build directories after a RELEASE build
<root>
|
|- <all the other normal ionic app files>
|
|- project (this is a new folder to hold various project related files)
| |-vendor-js.json
| |-vendor-css.json
| |-jshintrc.json
@katowulf
katowulf / controller.js
Last active April 12, 2017 14:12
Example of infinite scroll in Ionic with Firebase (utilizes Firebase.util.Scroll; http://firebase.github.io/firebase-util/)
var app = angular.module('myapp', ['ionic', 'firebase'])
app.controller('ctrl', function($scope, $firebaseArray) {
// create a connection to Firebase
var baseRef = new Firebase('https://webapi.firebaseio.com/rolodex');
// create a scrollable reference
var scrollRef = new Firebase.util.Scroll(baseRef, 'name');
// create a synchronized array on scope