Questions tagged [ember.js]
Ember.js is a component-service application framework written in JavaScript. Consider making your question easier to answer by using the preconfigured templates mentioned in this tag's wiki. (Always specify version of ember used when describing your issue)
23,571
questions
0
votes
0answers
13 views
Is it possible to have a model named 'application' in Ember.js app?
I use RESTSerializer and implement it as default in app/serializers/application.js
In my project, I have a model named 'application' and I need to create a custom serializer for this model. And I ...
0
votes
0answers
24 views
Bubbling error from react component to emberjs
In my ember app i can render react component with help from ember-react-components lib. It might look like this
// This is ember component with jsx in stored in ember app in components/my-react-...
0
votes
0answers
19 views
Downloading file with ajax, but download happens in the browser memory
So, I'm trying to download the file with ajax. The file is downloaded but the user only knows of the file after clicking it is when the file is saved to disk. When I open the network tab, I can see ...
0
votes
1answer
20 views
Is it possible to make a route's model a computed / tracked property?
I'm trying to have a route's model hook return some array that is constantly updated via a polling mechanism using Ember later. The route file looks like this:
export default class IndexRoute extends ...
0
votes
1answer
20 views
Ember cli pagination - unable to receive model?
Working with Ember 3.19 and trying to use ember-cli-pagination. I have all my posts from JSONplaceholder in the data-store under model type 'post'. I was able to view all the posts from the data-store ...
0
votes
1answer
40 views
How do I display grouped results in an EmberJS Application
I've created a simple EmberJS application that lists jobs from a headless CMS. The jobs data from the backend is in this format
[
{
"id": "1234",
"description&...
1
vote
1answer
20 views
Ember project to Github Pages
I just finished making an ember project (super simple nothing huge)
You can check it out <here>
but I am trying to deploy it to make it into a website on github pages and there is hardly any ...
1
vote
1answer
33 views
Append record onto RecordArray and Dynamically update Component Template
Here is what the rendered component looks like:
What I expect is that when I click that "Add an object" button, it creates a new Rental record, and it appends that Rental record to the ...
0
votes
0answers
23 views
DropDown List Ember On Pressing Cancel button should roll back
So I have a dropdown list and on action it make a secondary dialog where it have two button confirm and cancel On cancel I want the old ember dropdown to come .Is there any way to achieve .I tried by ...
0
votes
1answer
27 views
Ember.js, FontAwesome & Sass
I have an Ember.js project where I use Fontawesome5 and Sass. Creating an icon is easy with <FaIcon @icon="..."/>. But now I want to use an icon from Fontawesome with Sass (more ...
1
vote
1answer
25 views
Transition to Octane: replace addObserver design
Service requests performed by a service currently trigger "notifications" that components listen to using addObserver pattern ie the aService just toggles its _property and components act on ...
0
votes
0answers
11 views
How to define a relationship with two dimensional array of objects in Ember Data
Am new to Ember and still trying to learn its ways. I have two data models say 'foo' and 'bar' in my application. If a foo object has an attribute which is a two dimensional array of items of type '...
0
votes
2answers
35 views
“hasMany is not defined” error. Reflexive relationship in Emberjs
I get this error when I click a link to a route that retrieves the model with a reflexive relationship.
Uncaught ReferenceError: hasMany is not defined
This is my model in Ember
// app/models/section....
1
vote
1answer
27 views
SASS: How to substitute imports before build (Ember project)
I have Ember JS project and the main scss file (app.scss), I have an ENV variable (STYLE_NAME).
I need to replace the content of app.scss pasting @import 'STYLE_NAME'; Where STYLE_NAME - is a string ...
-1
votes
0answers
16 views
Pass variable as a window parameter from node JS
I want to pass one variable to my client (EmberJS) as a window parameter using node JS. Does anyone know how can I do that securely?