This file contains hidden or 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
| 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 |
This file contains hidden or 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
| 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 |