Skip to content

Tag: ember.js

Dynamic template arguments for an Ember component

I’ve run into a situation with a glimmer component that renders a LinkTo component within. The issue is that LinkTo treats the case where @model={{undefined}} and the case of omitting the @model argument as 2 different cases. This is because the default value for it is a special value of UNDEFINED. When…

Ember input type number to allow only 2 digits after Decimal

I am working on an Ember application, an input type number as below Then I have a following JavaScript Code written to limit the entry of digits after decimal, this function is called in Key-Down event. Its working but what it is doing it, it allowing 3 digits after decimal but when I am posting its value on …