I was wondering how to link the action in Ember.Select - when the user changed the category, I could perform other operations:
{{view Ember.Select class="form-control" id="PackCategory" content=Categories optionValuePath="content.categoryId" optionLabelPath="content.name" value=VendingAdminController.selectedPack.categoryId}}
as well as how to indicate performance as a goal?
thanks
As the king suggested
Just create a function in the controller that respects the value property {{select}}
{{select}}
onSelectedPackChange:function(){ //insert the code that needs to be excuted on change here }.observes('selectedPack.categoryId')
The above code should be placed in the VendingAdminController .
VendingAdminController
I don't have enough comments to comment on the previous answer, but I think ember syntax is not observed
Source: https://habr.com/ru/post/974320/More articles:I want to replace a word in history - javacross char string using char javascript - javascriptconvert case to data.frame to R - rOData V4 + WebAPI Filter by Int Meaning Enum? - odatacopy hg repo with all large files - mercurialFibonacci Closure - closuresHow to make ssh in an openshift application using the "rhc" command in windows? - windowsFailed to convert complex javascript object to query string - angularjsUsing libpd in Android Studio - androidCBPeripheralManager startAdvertising not working on OS X yosemite - cocoaAll Articles