javascript - Get the current element from router's actions in ember -


I was already trying to search everywhere, how to get the current element and get it on, but he To access the element, click on the View function. Even though it is also looking to achieve it (although the target on the action = "WorkView" does not really get me.) What was the parameter on the target anyway? Lol) so I received an element through the router To open this thread.

East.

  App.PostsRoute = Ember.Route.extend ({actions: {getElement: function (parameters) {// How to obtain current DOM element was clicked on? // My purpose The clickable element to remove it in the list // is probably to send it to server? Console.log (params); // current object model console.log (this); // path itself}}}); // template & lt; Ul & gt; & Lt; Li class = "go - this" {{action 'getElement' it}} & gt; & Lt; / Li & gt; & Lt; Li class = "go - this" {{action 'getElement' it}} & gt; & Lt; / Li & gt; & Lt; Li class = "go - this" {{action 'getElement' it}} & gt; & Lt; / Li & gt; & Lt; Li class = "go - this" {{action 'getElement' it}} & gt; & Lt; / Li & gt; & Lt; Li class = "go - this" {{action 'getElement' it}} & gt; & Lt; / Li & gt; & Lt; Li class = "go - this" {{action 'getElement' it}} & gt; & Lt; / Li & gt; & Lt; / Ul & gt;  


Comments

Popular posts from this blog

winforms - C# Form - Property Change -

javascript - amcharts makechart not working -

java - Algorithm negotiation fail SSH in Jenkins -