Questions tagged as 'emberjs'

1
answer

How does the databinding and dirty-check of Angularjs work?

How the angular data-binding works and how it can update the HTML so quickly an input for the declaration with {{}} and not only in the Angular, but also in other cases like EmberJS. I know he uses dirty-checking, but how exactly do these...
asked by 12.11.2015 / 16:53
2
answers

How to leave a radiobutton marked as default on ember

I have these two components radio-button . I would like to set% checked / checked as default. How do I do this in EmberJS?. <div> <label>Pessoa Física</label> {{radio-button id="classificacao-pessoa-is-fisica"...
asked by 30.06.2017 / 18:45
1
answer

How to hide a component in emberjs 2.1 equal to ng-hide?

Non-Angular exists ng-hide and ng-show to display and hide page elements. How to do the same in EmberJS 2.1? This is a translation of my question on SOEN .     
asked by 05.11.2015 / 17:33
1
answer

How to hide blocks for a route while going to a subroutine

I'm using Ember 2 and things are complicated for those who have no Ember experience. I have the following routes consultas\ consultas\reserva And on my router.js it's like this this.route('consultas', function() { th...
asked by 28.10.2015 / 15:37
2
answers

How do I display a component only on the home screen?

Within application.hbs I have a component called jus-hero : <header class="bg-leaf"> {{jus-hero}} </header> <main class="l-main"> {{outlet}} </main> How to render this component only on index...
asked by 21.02.2017 / 17:54
1
answer

How do you consume custom routes with ember?

My api rails has the route users / me that returns the data of the current user, it is written like this: #routes resources :usuarios do get :mim, on: :collection end #controller def mim render json: usuario_atual end H...
asked by 03.11.2016 / 22:04
1
answer

How to call a controller function in the EmberJS component

I have a radio-button.js component, a controller radio-options.js, and the radio-options.hbs template. I need to call the optionChanged function that is of the controller in the component, currently the form that is gives the following error: Un...
asked by 30.03.2016 / 15:01
1
answer

How to simulate a click on Linkedin with selenium. Problem: dynamic id / uses ember

Good morning, I'm trying to click on the 'Show more' button in the skills field but without any success. The xpath is dynamic, and by class also does not work. The button seems to be hidden somehow. I tried xpath: driver.find_element_by_xpa...
asked by 21.04.2018 / 15:19
1
answer

How to load JS correctly with Ember?

I'm trying to set up this template link in a project with Ember, however, the main library nifty.js is not loading the element .mega-dropdown (top menu) and the #mainnav element (side menu). My ember-cli-build.js looks like this: /*j...
asked by 27.10.2016 / 03:52
1
answer

How to prevent ember-data from making a request to the server

I have a route where the person can select items from a list for their account. But when entering this route ember sends a GET request to the server. How could I prevent this from happening? Follow the code snippet. I'm using EmberJS 2...
asked by 09.02.2016 / 13:58