Questions tagged [ember-controllers]
73 questions
0
votes
1 answer
cant get model from route action in ember
i just wanna refresh model in route while get an action from controller and run doRefresh action in this route
this is my code
import Ember from 'ember';
export default Ember.Route.extend({
profileFormService: Ember.inject.service(),
…

cahyowhy
- 553
- 2
- 9
- 26
0
votes
2 answers
ember computed in input value from each loop
i have a input element on ember, while the value is come from each condition
{{#each items as |item|}}

cahyowhy
- 553
- 2
- 9
- 26
0
votes
1 answer
ember multiple component with various id
i has a component in ember i named it foo
import Ember from 'ember';
var data, elTop;
export default Ember.Component.extend({
init(){
this._super(...arguments);
},
didInsertElement(){
this._super(...arguments);
data =…

cahyowhy
- 553
- 2
- 9
- 26
0
votes
1 answer
ajax request ember passing through component
i just wanna get value from json request in ember services from component.
this is my code
forecast-weather.js (services)
import Ember from 'ember';
export default Ember.Service.extend({
findWeatherCurrent:function (lat,lng) {
…

cahyowhy
- 553
- 2
- 9
- 26
0
votes
1 answer
Ember.js - Controller not picking model data
I have a model which has this field
diaryItemLabel: DS.attr('string'),
I want to access the data from this field in my controller.
Controller.js
I want to replace the 'Add' with whatever data I get from diaryItemLabel.
I cannot use…

user2798227
- 853
- 1
- 16
- 31
0
votes
1 answer
Ember.js action bubbling but controller undefined in action
I have a route that has an afterModel hook.
afterModel: function(model, transition){
transition.send('doInAppRoute');
}
I have an action in my application route:
doInAppRoute: function(){
var controller = this.get('controller');
…

user2517182
- 1,241
- 3
- 15
- 37
0
votes
1 answer
EmberJS 2.7 passing data down into a component is failing
I have read many questions on this problem, but none of them seem to have the issue I have here.
I am using a third-party component (ember-highcharts) which works great except for this snag.
I have a route called dashboard. For now this route is…

rmcsharry
- 5,363
- 6
- 65
- 108
0
votes
2 answers
How to store EmberJS input value in object or array on the controller
I have a few input fields being displayed programatically via the Ember each helper. These inputs are related to data being returned from my database, and I have a corresponding unique ID for each input that I could use if necessary.
My question is…

lkgarrison
- 115
- 2
- 9
0
votes
1 answer
How to fetch the data
Please tell me how to fetch the data from firebase
app/template/gmap.hbs
{{#leaflet-map lat=lat lng=lng zoom=zoom}}
{{tile-layer url="http://{s}.basemaps.cartocdn.com/light_all/{z}/{x}/{y}.png"}}
{{#each model as |c|}}
{{#layers.marker…

Sidharth
- 27
- 5
0
votes
0 answers
Display Location
I want enter the location in a form which contain location and click on submit button that location should be display in google map. the google map should be display in the next page and i want to display near by hospitals with icon.
I tried it but…

Sidharth
- 27
- 5
0
votes
1 answer
Accessing a model collection in controller - Ember2.5
When trying to access the model of a controller when creating a computed property on the controller, I get the following error:
model.uniqBy is not a function
app/controller/ticket.js
export default Ember.Controller.extend({
statuses:…

a7omiton
- 1,597
- 4
- 34
- 61
0
votes
1 answer
Emberjs: In my template I can't get a value from a form my controller
I create a template and it's controller and i set a variable(value) in controller but when i try to access in template noting to happen.
my controller is:
App.AboutController = Ember.Controller.extend({
info:null,
init: function() {
…

Nitesh singh
- 915
- 11
- 21
0
votes
1 answer
Ember cli replace image standard if image model is null in json
I want to display a standard image if the model in my json is null.
This is my function where first i successfully achieve to format the url in order to make it bigger (eg: https://i1.sndcdn.com/artworks-000121961221-bzjnxn-large.jpg to…

Koala7
- 1,340
- 7
- 41
- 83
0
votes
2 answers
Sync the states of multiple instances of same Ember Component
Here's the situation:
I wrote a component facility-search which searches through some fixture data. I put multiple instances of {{facility-search}} on same template (Tab Pages). This component has some input boxes where we can write search keywords.…

Chaitanya Chandurkar
- 2,142
- 3
- 24
- 43
0
votes
1 answer
values from model are not updating to the view
I have displayed a textbox using Ember.View.
In model i had specified all the details of the input.
App.Display = DS.Model.extend({
inputText: DS.attr('string'),
width: DS.attr('string'),
height: DS.attr('string'),
className:…

bvakiti
- 3,243
- 4
- 17
- 26