Skip to content

Instantly share code, notes, and snippets.

@himalay
Forked from FokkeZB/app.js
Last active August 29, 2015 14:17
Show Gist options
  • Select an option

  • Save himalay/ff9dfceeed670f054c62 to your computer and use it in GitHub Desktop.

Select an option

Save himalay/ff9dfceeed670f054c62 to your computer and use it in GitHub Desktop.

Revisions

  1. @FokkeZB FokkeZB created this gist Apr 19, 2013.
    5 changes: 5 additions & 0 deletions app.js
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,5 @@
    /* /Resources/app.js - Generated by Alloy, here to understand the flow */

    var Alloy = require("alloy"), _ = Alloy._, Backbone = Alloy.Backbone;

    Alloy.createController("index");
    7 changes: 7 additions & 0 deletions index.js
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,7 @@
    /* /app/controllers/index.js */

    if (Ti.App.Properties.getBool('isLoggedIn', false)) {
    Alloy.createController("home");
    } else {
    Alloy.createController("login");
    }
    3 changes: 3 additions & 0 deletions index.xml
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,3 @@
    <!-- /app/views/index.xml -->

    <Alloy />