Skip to content

Installing

Sezer Ekinci edited this page Sep 4, 2017 · 1 revision
CDN
<script type="text/javascript" src="https://cdn.rawgit.com/Flatte/Flatte-Web/1.0.1-beta.86/dist/flatte.min.js"></script>
Bower
$ bower install flatte

If you don't want to use bower or cdn, you can manually download the latest version of flatte.min.js.

Inject flatte in your angularjs module.

angular.module('myApp',['mx.flatte']);
Set configurations.
angular.module('myApp').run(['flatte',function(flatte){
  flatte.settings({
    debug: false,
    baseRef: "/",
    con: firebase,
    manifest: {},
    predefined: {
      ".true": true,
      ".false": false,
      ".null": null,
      ".timestamp": firebase.database.ServerValue.TIMESTAMP
    }
  });
}])

Clone this wiki locally