ember-cli

Ember.js how to extend ember-cli-addon component

ぐ巨炮叔叔 提交于 2019-12-13 07:01:55
问题 I'm using Stripe in my Ember app, and I've set it up following the instructions here : https://github.com/sweettooth/ember-cli-stripe so as my app stands right now, the ember-checkout component installed via this addon is in myappname/node_modules/ember-cli-stripe/app/components/stripe-checkout Now, I want to create a new component "my-stripe-checkout", and have it extend the default ember-cli-stripe component. I have tried: import StripeCheckoutComponent from '../node_modules/ember-cli

Ember CLI ember new fails on ember-cli-qunit

北城以北 提交于 2019-12-13 06:49:35
问题 I've been trying to use Ember CLI to set up a new ember install, but the process keeps dying when trying to install ember-cli-qunit. I'm relatively new to using npm, bower, and ember so maybe this could just be an issue with me being dumb. Here is the dump I get when running ember new webapp I've been working on this for a few hours and can't really figure out how to fix the issue. Thanks in advance 回答1: You must have ran bower as root at some point, and that would've changed the permissions

Ember-cli, Masonry, Isotope, Packery. How to use?

删除回忆录丶 提交于 2019-12-13 06:30:46
问题 I need to use them in my ember-cli project. How to start? I writed in terminal: bower install isotope --save then in my ember-cli-build.js I added app.import ecc... , but then I don't know what to do. Where to put my intialization script, like this: $('.grid').isotope({ // options itemSelector: '.grid-item', layoutMode: 'fitRows' }); If I put it in application.hbs it give to me an error and when i change route with {{#link-to}} it doesn't work anymore. What to do? In the web there aren't many

Ember Cli 0.2.7 initializers Loader Uncaught Error: Could not find module

余生颓废 提交于 2019-12-13 05:59:50
问题 Hi I have recently upgraded to the latest version of Ember-Cli and encountered an issue where if I attempt to load the page (by going to the url after typing the command ember server ) it doesnt load the page an give the error: Uncaught Error: Could not find module torii/redirect-handler imported from ui/initializers/initialize-torii-callback If I remove the tori configuration from the environment.js. This error does not occur. Has somethings changed in ember cli where i must explicitly

How to use custom test helper in ember.js

谁说胖子不能爱 提交于 2019-12-13 05:55:09
问题 I generated a custom test helper with: ember generate test-helper integration-for Here it is with its code removed: // tests/helpers/integration-for.js import Ember from 'ember'; export default Ember.Test.registerHelper('integrationFor', function(app, key) { return key; }); I can't get it to actually work in a component-test though. I've tried using it directly: // tests/integration/pods/components/itegration-item/component-test.js import { moduleForComponent, test } from 'ember-qunit';

Short delay when trying to run redirect with ember route with firebase authentication

老子叫甜甜 提交于 2019-12-13 04:43:24
问题 Alright, this is my first question on SO so I'll try to make it a good one sorry ahead of time. I've been using ember-cli to work on a product. I am using Firebase simple login for authentication and have created an initializer that adds an auth object to all my controllers and routes. This works, but... There seems to be a delay for the redirect checking. example I go to /secret and this should redirect me back to the /login route and it does but there is a slight delay where I can see the

Observing changes to an ItemController in Array Controller

末鹿安然 提交于 2019-12-13 04:16:16
问题 I've been learning ember by recreating the TodoMVC in EmberCli. Ive recreated all the functionality, but I ran into an issue and I was hoping someone could shed some light on the situation. It seems that my Todos ArrayController will observe and fire functions when properties in my model change but not when values in my Todo ObjectController change. I moved isEditing into the Model so that when I call editTodo canToggle fires. But I would prefer to store that value in my controller and not

Ember - Cli Error: spawn ENOENT

旧街凉风 提交于 2019-12-13 03:42:19
问题 I am cloning this project to run locally. These are the steps i have done in my Terminal git clone https://github.com/lrdiv/ember-soundcloud.git cd ember soundcloud ember install ember server I got this errors in my Terminal: And this is what i see in my http://localhost:4200/ Server is runnings, so this is good sign! but how can i fix it? 回答1: Try using ember-cli-sass instead of broccoli-ruby-sass in your package.json. Especially if you've updated the version of ember-cli from 0.0.39 Edit:

Ember-cli-rails No route match for ember's paths

巧了我就是萌 提交于 2019-12-13 02:58:11
问题 In a Rails and Ember project, I decided to use EmberCLI Rails because I want to do integration tests with Capybara and all my favorite testing gems. I installed it and it works when I go to the home page. I added routes on ember like this : import Ember from 'ember' import config from './config/environment' Router = Ember.Router.extend(location: config.locationType) Router.map -> @resource 'users' export default Router When I go on http://localhost:3000/users , I have a no route matches error

Extending link-to

强颜欢笑 提交于 2019-12-13 00:42:40
问题 I'm trying to create a custom link-to helper that will conditionally add query-params depending on the presence of a property. Right now, I'm getting an error: Uncaught TypeError: Cannot read property 'options' of undefined . I've traced that to the line var options = parameters.options in the function resolvedParams . Here's my code: In app/components/foo-link.js : export default Ember.LinkView.extend({ init: function() { this._super(); } }); In the template: {{foo-link title='Bar'