Last active
November 10, 2017 22:20
-
-
Save hell03610/e7649d9967cfb5a7a8a46ca6e09604fc to your computer and use it in GitHub Desktop.
02 - Enrutado
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
import Ember from 'ember'; | |
import config from './config/environment'; | |
const Router = Ember.Router.extend({ | |
location: 'none' | |
}); | |
Router.map(function() { | |
//this.route('events'); | |
}); | |
export default Router; |
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
import Ember from 'ember'; | |
export default Ember.Route.extend({ | |
model: function() { | |
return { | |
appName: 'CanariasJs' | |
} | |
} | |
}); |
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
import Ember from 'ember'; | |
export default Ember.Route.extend({ | |
model: function() { | |
return [{ id:1, name: 'ReactJS', description: 'La librería frontend más popular. Crea aplicaciones web escalables y sencillas con React y JavaScript.'}, | |
{id: 2, name: 'Apps con React Native', description: 'Crea aplicaciones móviles nativas usando solo Javascript, tus conocimientos de React y un poco de magia.'}, | |
{id: 3, name: 'Me casé con ember y no vas a creer que pasó a continuación', description: 'En esta charla veremos como Ember.js es el novio perfecto que permite hacer aplicaciones ambiciosas que perduran en el tiempo.'}]; | |
} | |
}); |
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
{ | |
"version": "0.8.1", | |
"EmberENV": { | |
"FEATURES": {} | |
}, | |
"options": { | |
"use_pods": false, | |
"enable-testing": false | |
}, | |
"dependencies": { | |
"jquery": "https://cdnjs.cloudflare.com/ajax/libs/jquery/1.11.3/jquery.js", | |
"ember": "2.5.1", | |
"ember-data": "2.5.2", | |
"ember-template-compiler": "2.5.1" | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment