ember-cli

#ember-power-select, How to set a preselected value in ember-power-select custom-search action

左心房为你撑大大i 提交于 2020-01-04 08:26:51
问题 There must be a value set in "selected" attribute before typing in search parameter".Can anyone help me to sort this out ? #ember-power-select It is working with normal action-handling by setting a value for "destination" in js and assigning "destination" to "selected". Have a look at here for such examples http://www.ember-power-select.com/docs/action-handling. But can't assign a value for custom-serach-action http://www.ember-power-select.com/docs/custom-search-action. My Code: Models:

Ember loading template works only on page refresh

非 Y 不嫁゛ 提交于 2020-01-04 05:40:08
问题 I have in my Ember app this routes: Router.map(function() { // landing page (login/register) this.route('home', {path: '/'}); // authenticated pages this.route('webappFrame', {path: '/app'}, function() { this.route('feed', {path: 'feed'}); this.route('photoDetail', {path: 'photo/detail/:id'}); }); }); where both "feed" and "photoDetail" have a model hook that return a promise (records coming from the server); I have a loading.hbs template in the /template folder; After a page refresh on both

How to update the UI immediately when a new record is added? Related to ember-cli-pagination

不打扰是莪最后的温柔 提交于 2020-01-04 05:38:42
问题 In our app, there is a Company page, which lists all the companies in paginated way. We are using Ember 1.13 and ember-cli-pagination addon for pagination. The data is coming from Rails API, so we are using remote paginated API scenario. Everything is working fine for now, 10 records on each page, next and previous buttons etc. Only problem is when we add a new record, the record is saved but it doesn't show up on the UI immediately, we have to refresh the page for that. There are other parts

How to update the UI immediately when a new record is added? Related to ember-cli-pagination

痞子三分冷 提交于 2020-01-04 05:38:17
问题 In our app, there is a Company page, which lists all the companies in paginated way. We are using Ember 1.13 and ember-cli-pagination addon for pagination. The data is coming from Rails API, so we are using remote paginated API scenario. Everything is working fine for now, 10 records on each page, next and previous buttons etc. Only problem is when we add a new record, the record is saved but it doesn't show up on the UI immediately, we have to refresh the page for that. There are other parts

Upgrading Ember inside of Ember-CLI

走远了吗. 提交于 2020-01-04 04:24:10
问题 I've just created a new Ember-CLI app (v0.1.12), and noticed that the referenced version of Ember is v1.8.1 (bower.json). I'd like to get the recently released 1.10 goodness in my project. What steps do I need to take to do this? (I'm new to Ember, Ember-CLI, Bower & NPM.) 回答1: As per the release notes for Ember 1.10.0 To smoothly upgrade to 1.10 and HTMLBars, Ember-CLI users should update to a version at or after 0.1.12 and then remove their application's Handlebars dependency. You can do

how to deploy ember-cli project in apache server

混江龙づ霸主 提交于 2020-01-01 18:55:16
问题 I have the following problem. I created an ember application with ember-cli. The application works fine on nodejs through the url http://localhost:4200/ when running the command ember serve I want to deploy this application on an apache httpd server. In order that this will work i think that it should work also standalone when opening in firefox. When i open it in firefox i get an error: require is not defined The generated index.html is <!DOCTYPE html> <html> <head> <meta charset="utf-8">

How should I share data between Ember components?

三世轮回 提交于 2020-01-01 08:52:33
问题 My Ember app has a route that contains 2 different components and one controller with an index.hbs template. Here's what it looks like: 1) A user can select multiple filters from the dropdowns of the Filter Component 2) The DataGrid is a separate component from the filter 3) A user can select multiple rows from the DataGrid by checking boxes 4) Create Custom Report button fires "sendAction" to the route's controller This data is not model-specific... it's just temporary data that is required

How should I share data between Ember components?

99封情书 提交于 2020-01-01 08:52:06
问题 My Ember app has a route that contains 2 different components and one controller with an index.hbs template. Here's what it looks like: 1) A user can select multiple filters from the dropdowns of the Filter Component 2) The DataGrid is a separate component from the filter 3) A user can select multiple rows from the DataGrid by checking boxes 4) Create Custom Report button fires "sendAction" to the route's controller This data is not model-specific... it's just temporary data that is required

Using mixins with Ember-cli?

偶尔善良 提交于 2020-01-01 08:25:33
问题 I have a mixin app/mixins/ui-listener.js which I'm struggling to use with Ember-CLI. I'm trying to use the mixin with the following syntax: import ListenerMixin from './mixins/ui-listener'; export default Ember.Component.extend(ListenerMixin,{ // class definition } This fails when I save it, complaining that ENOENT, no such file or directory 'tmp/tree_merger-tmp_dest_dir-74tK3rvD.tmp/[app-name]/components/mixins/ui-listener.js' It seems funny that the "mixins" directory is nested under the

How do you serve ember-cli from https://localhost:4200 in development

吃可爱长大的小学妹 提交于 2019-12-31 12:52:33
问题 For our authentication to work with our ember app we need to serve the app from a secure url. We have a self signed ssl cert. How do I setup the ember-cli to serve the index.html form a https domain. Cheers 回答1: Also see https://stackoverflow.com/a/30574934/1392763. If you will always use SSL you can set "ssl": true in the .ember-cli file for your project which will result in the ember serve command using SSL by default without having to pass the command line flag every time. By default ember