Quantcast
Viewing all articles
Browse latest Browse all 4826

What is best way to pass value out from route change

@adsl99801 wrote:

1. I have a my-header component on top of my webpage

2 .I have a service called my-pre to keep valve(activePosition) to recode now active position (because I want set class value .active in my-header in li tag )

    export default Ember.Service.extend({
      activePosition: 0,});`

when click button send an action to it's controller to set activePosition value

(ex:activePosition =0 first index li set active or activePosition =1;) t it is every tedious

Posts: 3

Participants: 2

Read full topic


Viewing all articles
Browse latest Browse all 4826

Trending Articles