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)
ember.js
23,982
questions
0
votes
1
answer
9
views
Ember.js octane acceptance test
I don't understand why fillIn can't find 'data-test-code-nav-selector'.
I have paused the test and using the devtools I copied this DOM excerpt. It displays as expected. As you can see, the select tag ...
0
votes
0
answers
27
views
How to call a component from a controller file?
I'm new to ember js, It may feel like a dumb question, but still:
I've already defined a component say {{pq-component}}, it works fine, when called from a .hbs file.
But when I try to call it from a ....
0
votes
2
answers
23
views
How to dynamically add click handler to Ember Octane component - dynamic "on" modifier
I have a situation where I need to make a component and it has some logic to either render as a button or as a DIV depending on if it has a link.
{{#let
(if
this.hasLink
(component "...
0
votes
0
answers
12
views
Gridstack does not adhere to dynamic drag handles
I'm currently using Gridstack in an Ember project and want to have a custom drag handle. I know this can be implemented by setting the draggable: { handle: '.my-custom-drag-handle' } in the options. ...
1
vote
1
answer
30
views
CORS Ember.js C#/.net SessionId Header
I have an Ember.js SPA that's calling a .net service via AXIOS. Everything was working until I started checking the SessionId header to return a 401 when it's expired.
As long as the token is valid, ...
0
votes
0
answers
14
views
How to a made query param for refreshed one table with filtered attributes
Context: I have a table of inputs and outputs for a person and with these values I calculate the total hours worked and check whether the total time requirement has been met. Example: Monday = 8 ...
0
votes
0
answers
13
views
How can I resolve "Parsing error: Cannot use import statement outside a module" in Ember.js?
My project uses ember-cli: 3.28.6, node:12.13.1
I am getting at least 100 of this error, in files that don't even have import statements, in files that were automatically generated by ember-cli, etc. ...
0
votes
0
answers
23
views
Accessibility on ember outlet elements
I have an ember web application, with a simplified structure of landing page like this:
<container>
<header></header>
<main> {{outlet}} </main>
&...
0
votes
1
answer
46
views
How to Resolve 'Uncaught TypeError: Cannot read property 'charAt' of undefined' Error in Vendor.js When Focusing First Error Field on Form Submission?
I'm currently grappling with an issue regarding the focusing of the first error field within a form upon submission. Despite successfully implementing functionality to focus on the first error field ...
0
votes
2
answers
42
views
Injecting store brings "Cannot read properties of undefined" on ver5.7/5.3 with Typescript
I created services/store.js with default export, then I added "@service store;" in route. Right at that line the following error occurs:
TypeError: Cannot read properties of undefined (...
1
vote
1
answer
32
views
Inherit session token between 2 apps as long as one of them has been signed in Ember.js
I have 3 web apps written in ember.js /appA, /appB and /AppC in the same domain and they connect to the same api with a token.
I have this configuration:
// under app/session-stores/application.js
...
0
votes
0
answers
41
views
JWT authentication out-of-the-box solution for typed Ember?
Is there any quick and simple solution to provide JWT token authentication for Ember with Typescript enabled? Although this issue sounds like quite a routine, most modules and documentations refer to ~...
1
vote
1
answer
23
views
Ember.js 5.4 how to update component variable when session store is updated
Ember.js Octane and JavaScript (not TS)
I have a service to access the session store. When I add or remove a specific key, I want my top level component to toggle visibility for the nav-bar. I have ...
0
votes
1
answer
27
views
Ember.js component button may have one of a fixed listed of values, how to make it use minimum width for longest string?
Single button, it may display the text "Show", or "Hide".
Toggling between show and hide causes the width of the button to change.
I want the button to take up as much width as it ...
0
votes
1
answer
54
views
How to use frontend app within virtual host proxypass?
I am using docker with three containers - backend/frontend/admin. I would like to use such proxy pass to navigate either to admin page or frontend -
<VirtualHost *:80>
ServerName cookie.com
...