ember-addon

Add route to Ember Addon

女生的网名这么多〃 提交于 2019-12-12 10:46:28
问题 i'm developing ember addon and i need to share one route between all applications that use this addon but i don't know how to achieve that or if it's even possible. Already i've add routes in addon, but application that counsume addon, doesn't see this. Any suggestions? Thanks! 回答1: Yes it is possible. What you put in your addon's app directory will be merged with consuming applications' app directory. (Resource) Put your routes into the correct directories. On the other hand, you need to add

Updating Ember.js environment variables do not take effect using in-repo addon config() method on ember serve

二次信任 提交于 2019-12-11 17:29:45
问题 My goal here is to create an auto-increment build number that updates both on ember build and ember serve. In the end, if I can only use this on build, that's totally ok. I originally asked this question: In-repo addon writing public files on build causes endless build loop on serve In that I was attempting to solve this problem by writing out JSON files. The problem was mostly solved, but not using ember serve. Instead of doing that, I'm now trying to update the local environment. But this

How to open the dropdown of Ember Power Select from outside?

北慕城南 提交于 2019-12-11 17:08:45
问题 As the title says, we would like to open the dropdown of the Ember Power Select (http://www.ember-power-select.com/) from outside, i.e., from a parent component or the route's template. As far as we have checked, there is no way to trigger the action open of the component, which btw wouldn't be correct in the sense of "data down, actions up" principle. So, rather we need to "register" some data attribute that allows us to trigger to open the dropdown by altering the data attribute. But maybe

ember-select-2 issue while using type-ahead with Ajax Queries

◇◆丶佛笑我妖孽 提交于 2019-12-02 14:35:52
问题 I'm using ember-select-2 as a typeahead in ember application.the problem is i can fetch the data from the server but the data isn't showing in dropdown.any help would be appreciated.Thanks in advance. {{select-2 placeholder="Choose from our many pizzas" value=chosenTypeaheadPizza typeaheadSearchingText="Searching pizzas" typeaheadNoMatchesText="No pizzas found for '%@'" typeaheadErrorText="Loading failed: %@" query="queryPizzas" }} and action handler is queryPizzas(query) { var self = this;

ember-select-2 issue while using type-ahead with Ajax Queries

喜夏-厌秋 提交于 2019-12-02 09:10:16
I'm using ember-select-2 as a typeahead in ember application.the problem is i can fetch the data from the server but the data isn't showing in dropdown.any help would be appreciated.Thanks in advance. {{select-2 placeholder="Choose from our many pizzas" value=chosenTypeaheadPizza typeaheadSearchingText="Searching pizzas" typeaheadNoMatchesText="No pizzas found for '%@'" typeaheadErrorText="Loading failed: %@" query="queryPizzas" }} and action handler is queryPizzas(query) { var self = this; var store = self.get('store'); let adapter = store.adapterFor("pizzas"); let serachQuery = query.term;