| author | Chloe Laisne <chloe.laisne@gmail.com> |
| Wed, 15 Jun 2016 09:50:56 +0200 | |
| changeset 191 | db5711fbbb6c |
| parent 176 | d1baf7ccecc8 |
| child 198 | 541e26eb356f |
| permissions | -rw-r--r-- |
|
96
719390899adf
add action helper on "thematique" click or input enter to set the "thematique" parameter
nowmad@23.1.168.192.in-addr.arpa
parents:
diff
changeset
|
1 |
import Ember from 'ember'; |
|
719390899adf
add action helper on "thematique" click or input enter to set the "thematique" parameter
nowmad@23.1.168.192.in-addr.arpa
parents:
diff
changeset
|
2 |
|
|
719390899adf
add action helper on "thematique" click or input enter to set the "thematique" parameter
nowmad@23.1.168.192.in-addr.arpa
parents:
diff
changeset
|
3 |
export default Ember.Controller.extend({ |
|
176
d1baf7ccecc8
Add `thematiques` components
Chloe Laisne <chloe.laisne@gmail.com>
parents:
96
diff
changeset
|
4 |
|
|
d1baf7ccecc8
Add `thematiques` components
Chloe Laisne <chloe.laisne@gmail.com>
parents:
96
diff
changeset
|
5 |
actions: { |
|
d1baf7ccecc8
Add `thematiques` components
Chloe Laisne <chloe.laisne@gmail.com>
parents:
96
diff
changeset
|
6 |
|
|
d1baf7ccecc8
Add `thematiques` components
Chloe Laisne <chloe.laisne@gmail.com>
parents:
96
diff
changeset
|
7 |
transitionTo: function(id){ |
|
d1baf7ccecc8
Add `thematiques` components
Chloe Laisne <chloe.laisne@gmail.com>
parents:
96
diff
changeset
|
8 |
this.transitionToRoute({queryParams: {thematique: id}}); |
|
d1baf7ccecc8
Add `thematiques` components
Chloe Laisne <chloe.laisne@gmail.com>
parents:
96
diff
changeset
|
9 |
} |
|
d1baf7ccecc8
Add `thematiques` components
Chloe Laisne <chloe.laisne@gmail.com>
parents:
96
diff
changeset
|
10 |
|
|
96
719390899adf
add action helper on "thematique" click or input enter to set the "thematique" parameter
nowmad@23.1.168.192.in-addr.arpa
parents:
diff
changeset
|
11 |
} |
|
719390899adf
add action helper on "thematique" click or input enter to set the "thematique" parameter
nowmad@23.1.168.192.in-addr.arpa
parents:
diff
changeset
|
12 |
}); |