Posts by Luiz Carraro • 56 points
3 posts
-
1
votes3
answers50
viewsA: How to display a component only on the home screen?
You can set your home as being some specific route, other than the application route. That way, displaying the component in question only on it. Example: In your router.js file Router.map(function()…
emberjsanswered Luiz Carraro 56 -
1
votes2
answers56
viewsA: How do you consume custom routes with Ember?
The simplest format would be: // rota: user.js import Ember from 'ember'; export default Ember.Route.extend({ model() { return Ember.$.ajax('http://host/user/min'); } }); And in the user.Hbs…
-
2
votes2
answers90
viewsA: How to leave a radiobutton marked as default on Ember
Just add the property classificacao in your controller or Component import Ember from 'ember'; export default Ember.Controller.extend({ . . . classificacao: { pessoa: { tipo: 'FISICA' } } }); See…