23,972 questions
1
vote
0
answers
10
views
Is there a way to redirect user to different login pages depending on current route prefix if session token is expired?
We use Ember Simple Auth to work with authentication in our Ember application. Currently it's Ember v4.
We have two different user types and two different route prefixes in our application for them to ...
2
votes
0
answers
47
views
new ember.js application fails to start as cannot find node_modules/@embroider/macros/src/node.js.js (with double .js)
Just learning Ember.js
Following tutorial at https://guides.emberjs.com/release/tutorial/part-1/orientation/
with
ember new super-rentals --lang en
then once finished installing packages
cd super-...
-1
votes
0
answers
21
views
Add CSS Modules in ember
I am trying to add CSS modules in ember application. So that I can add component specific styling. But after installing CSS modules my root CSS is not working.
app structure:
app
- component
- +...
0
votes
1
answer
30
views
Joi validation of emberjs belongsTo
ember 5.12
Joi 17.13.3
my emberjs model aModel has a field which is defined like this:
@belongsTo('anotherModel', {async:true, inverse:null}) anotherModel;
I want to validate, as part of my Joi ...
0
votes
0
answers
19
views
How to resolve Mirage mocking HasMany relationship error for Ember JS
Ember JS framework.
I am trying to test my route.js . I created route-test.js as below which is running fine but I need to use mirage mocking to mock foo model in route-test.js.
When I tried mocking, ...
0
votes
0
answers
14
views
ember: computed propertied | ember-macto-helper/computed vs @ember/objects
I am moving away from ember-macro-helpers/computed in my project and starting using computed from '@ember/object'
I have following code
rowData: computed('addEndpointsData', function () {
const ...
0
votes
1
answer
33
views
Proper way to migrate @computed decorators
I have a model Post that used a @computed decorator like this
@hasMany('comment', {async: true}) comments;
@computed('[email protected]')
get authorNames(){
let comments = this.comments;
...
1
vote
2
answers
60
views
LinkTo fails on click
I generate a link as:
<td><LinkTo @route="assets.asset" @model="{{asset.id}}">{{asset.id}}</LinkTo></td>
The link is generated correctly. When I click ...
1
vote
0
answers
136
views
Slow Ember build in docker container
I'm attempting to Dockerize my local development setup to make it much simpler to onboard new developers and ensure a common local environment for all. But i am running into build performance issues ...
0
votes
0
answers
27
views
Pollyjs delay request using timing: Timing.fixed(200) is not working in ember test environment
Pollyjs delay request using timing: Timing.fixed(200) is not working in ember test environment, but in development mode it delays request by 200ms
0
votes
1
answer
33
views
How to bootstrap Angular application from Ember js
I want to bootstrap angular webapp from ember js and for that, we have imported angular bundle files into index html of ember js and trying to bootstrap angular by <app-root> </app-root> ...
0
votes
0
answers
38
views
Updating a Single Attribute in Ember-Data Model Also Resets Relationships
I'm working on an Ember.js application where I need to update a single attribute (views) on a book model using Ember Data. However, when I call save() on the model, the relationships of the book (like ...
0
votes
1
answer
44
views
Multi-tab state persistence in webapp
Having done this for awhile, I’d love a quick sanity check: in a web app using the History Web API is there any way to replicate state persistence across multiple primary nav tabs like you might ...
0
votes
0
answers
26
views
Why accessing a components root element using this.$(#rootElementId) returns zero elements?
DOM
<div id="ember3705" class="ember-view">
<div id='childelement'></div>
</div>
I'm trying to execute this js code this.$('#ember3705') in component.js of ...
0
votes
1
answer
62
views
How to migrate Ember web application to Angular module by module
We have one web application developed in Ember js and we want to migrate it to latest Angular, but we want to migrate it module by module. so we need to coexist Angular and Ember both. and build ...