Titanium User Group March 2014 Austin Meetup

Post on 28-Nov-2014

246 views 0 download

description

Meetup Agenda 1. Alloy Framework the MVC model
 2. Sample Code using Alloy
 3. Developer Resources


transcript

March 19th 2014

at TechRanch Austin

http://www.meetup.com/Titanium-UG-Austin

Titanium User Group - Austin Meetup

Jae Lee

Founder of Movable Ads LLC

Sponsor

Agenda

Alloy Framework the MVC model

Sample Code using Alloy

Developer Resources

Typical Application Structure

Project Structure

Classic Alloy

Model–view–controller (MVC)

Models provide the business logic, containing the rules, data and state of the application.

Views provide the GUI components to the user, either presenting data or allowing the user to interact with the model data.

Controllers provide the glue between the model and view components in the form of application logic.

[image from wikipedia]

Alloy Framework

Model is the index.xml

View is the index.tss

Controller is the index.js

[image from wikipedia]

Why Use Alloy?

Structuring your app in a MVC model

Better way to maintain your code

Reduce the number of lines in code

... but it comes down to your preference.

Let’s code

Creating the Model

Creating the View

Creating the Controller

https://github.com/TitaniumUserGroup/Mapping

Sample Code