Questions tagged [ember-addon]

Extensions for ember.js applications

ember.js addons are specific extensions for ember.js applications.

To find ember.js addons have a look at these listings:

To develop ember.js addons have a look at these resources:

93 questions
0
votes
1 answer

Ember.js - How to get current user properties in abilities source file while using ember-can addon

How to get user object in abilities source file in Ember-can addon. This is how my abilities file looks like. import Ember from 'ember'; import { Ability } from 'ember-can'; export default Ability.extend({ canWrite:…
Vivekraj K R
  • 2,418
  • 2
  • 19
  • 38
0
votes
2 answers

Ember component creation error in 2.10

When I do Ember.Component.Create() in an unit test for mixin i get this error. I was upgrading ember from 1.13 to 2.10, this test worked fine in 1.13 but in 2.10 I get this error. Looks like in 2.10 ember component init requires an app…
wallop
  • 2,510
  • 1
  • 22
  • 39
0
votes
2 answers

Ember external js and global

In my Ember app I am trying to add the money.js external lib. I successfully achieved that by installing it with bower and then adding app.import('bower_components/money.js/money.js'); to my ember-cli-build.js. money.js defines a global variable fx…
masciugo
  • 1,113
  • 11
  • 19
0
votes
1 answer

Babel ignore equivalent in ember engines?

In a traditional Ember app, I have something along the lines of this in my ember-cli-build.js: //ember-cli-build.js module.exports = function(defaults) { var app = new EmberApp(defaults, { babel: { includePolyfill: true, ignore:…
YnotDraw
  • 435
  • 2
  • 6
  • 19
0
votes
1 answer

using sass in ember.js addon

I am developing an addon in ember.js for my new ember app. I am trying to figure out how to use sass as styles with my addon and make it independent from my app. Saying that addon uses sass but the app using it dones't necessary has to have…
martodox
  • 43
  • 4
0
votes
1 answer

ember addons test-support directory

I've some test helpers in my addon. I want to: use these helpers for my addon's own tests. make these helpers available to my addon's users, for testing their own codes. In the documentation, it is said that test-support can be used to satisfy…
ykaragol
  • 6,139
  • 3
  • 29
  • 56
0
votes
1 answer

Publish ember addon to local NPM registry for developer builds?

How can I support these NPM/ember addon scenarios? developers build ember addon A and use build ember application B which uses their A local package developers only builds B installing A from our nexus NPM integration repository build system builds…
Peter Kahn
  • 12,364
  • 20
  • 77
  • 135
0
votes
2 answers

ember.js addon: how to manipulate files?

We have 5+ ember.js projects. I've extracted all common features as an addon. Other projects depend my addon with package.json (as npm module). I want to do some post-processing after my addon upgraded on any project (via npm install). I need to do…
ykaragol
  • 6,139
  • 3
  • 29
  • 56
0
votes
3 answers

How to use ember-power-select in {{#each}} block

I am generating ember-power-select box using {{#each}} block in hbs template as shown in the code below. {{#each hps as |hp|}} {{#power-select search=(action "searchRepo") selected=selected onchange=(action (mut selected)) as |repo| }} …
rinold simon
  • 2,782
  • 4
  • 20
  • 39
0
votes
1 answer

Error: Assertion Failed: A helper named 'hash' could not be found

I tried to decompose my Ember.js application into different addons. I've moved some of my components to the addon. But at tests of components who use hash helper got the following error: Error: Assertion Failed: A helper named 'hash' could not be…
ykaragol
  • 6,139
  • 3
  • 29
  • 56
0
votes
1 answer

Ember addon. method findBy() is not a function

I'm building an Ember addon using an Ember app that I've already built, but I'm having an issue with the method .findBy(). Basically in the app .findBy() works for an array of Objects (ember.Array class), but if I try to use it in the addon I…
Wesley
  • 155
  • 1
  • 11
0
votes
1 answer

ember-cli-htmlbars plugins not processing in-repo addon templates

I'm using a plugin for ember-cli-htmlbars in an addon to process the template ASTs. It works correctly for templates in my addon's dummy application. However, the dummy application has an in-repo addon that contains templates in addon/templates/.…
Zack The Human
  • 8,373
  • 7
  • 39
  • 60
0
votes
0 answers

Ember simple auth missing props after restore

When I first do a login, and set some props to this.get('session'), everything works fine. Code below: actions: { // display an error when authentication fails authenticate: function() { var _this = this; var credentials =…
vikingmute
  • 412
  • 2
  • 10
  • 24
0
votes
1 answer

Component exposed in ember addon is not recognised in ember app

I have an addon that records integration tests for ember: https://github.com/QuantumInformation/ember-cli-test-recorder However I find that when I import it into an ember cli project via npm and then use the component it exposes like so in…
Nikos
  • 7,295
  • 7
  • 52
  • 88
0
votes
1 answer

Error message about #each looping over a non array when it is already an array

I have updated to ember-cli@0.2.3 and am getting the following error message when running ember serve on an addon project of mine to start the dummy app. Uncaught Error: Assertion Failed: The value that #each loops over must be an Array. You…
jax
  • 37,735
  • 57
  • 182
  • 278