lundi 20 février 2017

How to change the attributes of a HTML element in emberJS from the afterModel or some similar method

I have a route and a corresponding template in my ember application. On page load itself I want to hide few elements based on URL parameter. I tried doing this in the afterModel method using jquery $.("elementName").hide(); and few other combinations. But nothing works because it seems the DOM Is not yet available. The same can be achieved as a button action in the actions section, but it doesn't help me as I would like to do it on page load. Can someone point out what I am doing wrong .




Aucun commentaire:

Enregistrer un commentaire