Questions tagged [ember-controllers]

73 questions
1
vote
0 answers

Ember - trying to access CompaniesController model data from UsersController or UsersRoute

I have simplified the story for brevity. I have 2 basic models, User and Company and display lists of each on separate templates. But on the Users list I want to have a drop down at top to filter what users are visible. For now I just want the list…
Nick Licata
  • 147
  • 11
1
vote
0 answers

emberjs-1.7.0-beta.4 can't access another controller's content using needs api

I am trying to use the needs api to get access the content of the PagesController from my IndexController. But it is not working, the only way I have gotten it to work is to add an IndexRoute and load it through the model hook. Is there a way to use…
brg
  • 3,915
  • 8
  • 37
  • 66
1
vote
1 answer

Model for application route in ember.js

I have the following code where I am trying to set the model for ApplicationRoute but it doesn't seem to work. I have a few doubts regarding the Ember code. Firstly, Can I set a model for application route? Secondly, if the model for the route has…
Pranava Sheoran
  • 529
  • 4
  • 27
1
vote
1 answer

Ember TextField valueBinding to controller issue

I am using the Twitter typeahead.js plugin. So to use it I am extend Ember's TextField. The plugin all works fine. Now I just want to make the value accessible inside the controller. When I use the value binding inside the view class, it works fine.…
blessanm86
  • 31,439
  • 14
  • 68
  • 79
1
vote
1 answer

Finding a component and changing its property in Ember.js

I have a template which creates a component for every record it has in the model. I want to find a component and update one of its property at runtime based on an event from some other template. How to find a particular component inserted in the…
Pranava Sheoran
  • 529
  • 4
  • 27
1
vote
1 answer

Ember controller not refreshing template after setting property in promise

I might be doing this horribly wrong, but here goes: I am getting the user from the server, and once it is resolved, I am trying to render the user's name to the page. The login form is actually a popup window based on this:…
0
votes
0 answers

could not find module 'ember-resources'

am trying to build an web app with ember and in the process of making a request to server and receiving a response and for that i used resources from ember-resource yet it always popping the error module not found ember-resources the js code import…
0
votes
1 answer

Ember Octane - Display contents of a Tracked Array from Controller in Template?

I am trying to render access the contents of an array stored in the controller from within the template. The array starts empty but objects are added to it using a method in the controller: import Controller from '@ember/controller'; import {action}…
0
votes
2 answers

Ember Calling method inside the controller

here is my code I have to call another method inside the Ember controller I was tried but this is not working I have confused in this... please help me to what is wrong in this code? export default Ember.Controller.extend({ .... getValue(){ …
Zaza
  • 406
  • 9
  • 18
0
votes
1 answer

how to pass controller data into component and back up in ember js

I have an ember 2.13 app that has a users route fetching a users model. So in the users template I am showing all the users fetched. I also have a users controller that feeds data to an edit form when a user is clicked. I'm using the user controller…
0
votes
1 answer

Is it possible filterBy no values in emberjs?

In my controller, I have a filtered array like filteredPosts: Ember.computed.filterBy('model', 'foo', 'bar') Is it possible that filteredPosts does not filter anything at all. I need this in case a user doesn't want to apply a filter and just…
Cameron
  • 2,805
  • 3
  • 31
  • 45
0
votes
2 answers

ember must call super method from component error

i just extending my ember component with my custom mixins class but unfortunately my log said an error Assertion Failed: You must call `this._super(...arguments);` when overriding `init` on a framework object. Please update…
0
votes
1 answer

How to get an event.target from event on input helper in ember

iam using input helper in ember for binding attributes value
cahyowhy
  • 553
  • 2
  • 9
  • 26
0
votes
1 answer

get xhr return function in ember ajax service

i have an ember service that provide ajax post import Ember from 'ember'; import ENV from '../config/environment'; export default Ember.Service.extend({ save(data) { return new Ember.RSVP.Promise( function (resolve, reject) { …
cahyowhy
  • 553
  • 2
  • 9
  • 26
0
votes
1 answer

ember helper waiting for an ajax request

i,ve write an ember component when init method they call ajax request init(){ this._super(...arguments); const context = this; if ((this.get('localStorage').getItem('idProfileDesa')) !== null &&…