Questions tagged [htmlbars]

HTMLBars is the EmberJS templating system replacement for Handlebars starting with v1.10.0

HTMLBars is the templating system replacement for starting with v1.10.0. You can check the source code here.

116 questions
1
vote
1 answer

Accessing indexed item from array in HTMLBars

I have a custom API that is not formatted for easy use with Ember Data. I'm having trouble getting the value of nested array properties from my api. api response: { "data": [ { "id": 6, "name": "Company Name", "links": [ …
ThreeAccents
  • 1,822
  • 2
  • 13
  • 24
1
vote
3 answers

Inline-if inside button triggers deprecation warning and error

I'm trying to bind whether a button is active or disabled on a computed property but get this depcreation warning and error afterwards. This is troublesome button (Ember 1.11.1 here):
1
vote
1 answer

Dynamic bound property for an HTMLBars Helper in Ember

I have a list of attribute names attrs that I would like to iterate over, creating an input with a binding to that attribute on the model for each for each. The below expresses the functionality I'm after: {{#each attr in attrs}} {{input…
Sean Mackesey
  • 10,701
  • 11
  • 40
  • 66
1
vote
1 answer

TextField View Helper - Ember.Handlebars.helpers.view.call is not a function

I'm working on upgrading my grunt CLI based ember 1.8 app to 1.10 with HTMLbars & have made progress, but my view helpers and components don't work; such as date-input, ember-select, bing-map, product-item. So I'm starting with the date-input view…
bobvan
  • 251
  • 3
  • 9
1
vote
2 answers

How do I expose a component via block params in Ember 1.10 + HTMLBars

With block params, I thought the following would work to expose a component to a nested control without need of the _yield hack. {{#my-component as |myparam|}} {{log myparam}} {{/my-component}} This does not appear to work, as this log returns…
runspired
  • 2,642
  • 1
  • 19
  • 24
1
vote
2 answers

Ember double each loop. Using value of inner each loop variable to bind to property named the same in the variable of the outer each loop

To elaborate on the title, what I am trying to achieve is the following. I am building an interactive table component in Ember. Here is the stripped template: {{#each header in headers}} …
nem035
  • 34,790
  • 6
  • 87
  • 99
0
votes
3 answers

Is it possible to write conditional check for two variable in one conditional check

I have a case where two condition need to check for disabling button. sample code , the way i have did
Submit
Thanks.
dilip kumar
  • 377
  • 4
  • 13
0
votes
1 answer

Resolving promise doesn't show data in template

I have tried several versions/attempts to create and return a RSVP.Promise as a param to my template. All the console.log give reasonable values, so the promises are resolving. The problem I have (which is then also the question) is how to return…
Jeff
  • 6,895
  • 1
  • 15
  • 33
0
votes
1 answer

Perform actions within the with helper

New to Ember here. I am trying to figure out how to execute an action and the product of that action be used by the #with helper. Below is an example of my code: {{#navigation-container as |navigationContainer|}} {{#with (action…
DevanB
  • 377
  • 1
  • 6
  • 16
0
votes
1 answer

Ember opposite of positionalParams

In an Ember Component it is possible to define a positionalParams property so that parameters passed as positional params become available as properties. E.g: let MyComponent = Ember.Component.extend; MyComponent.reopenClass({ positionalParams:…
Willem de Wit
  • 8,604
  • 9
  • 57
  • 90
0
votes
0 answers

Magento 2.0 Front End Products Description Updating

When I am updating the Products description on the Admin Panel for Magento 2.0, the space for description sometimes comes up without the HTML tool Bar. It also does not allow me to save the entered description. If I refresh the page, it works fine.…
SueK
  • 1
0
votes
1 answer

How do I add a Checkbox into a #{{link-to}} Helper

The problem: I have a table with a link-to within an each. I want the first cell of each row to have a checkbox strictly for toggling. I can display the checkbox, but I can't get it to let me check it.
D.Breen
  • 51
  • 2
  • 9
0
votes
1 answer

Ember Dynamic Input Value from Model - HTMLbars

Assuming the following model: export default Ember.Route.extend({ model() { return ['car', 'truck', 'boat']; } }); I can loop through the model like so: {{#each model as |vehicle index|}} {{vehicle}} - #{{index}} {{/each}} which would…
Matt
  • 1,811
  • 1
  • 19
  • 30
0
votes
1 answer

Error while running "ember test" inside ember addon - undefined is not an object (evaluating 'Ember.View.extend')

I am getting this error "undefined is not an object (evaluating 'Ember.View.extend')" when I run "ember test" inside my ember addon project.Used ember versions are as follows Ember CLI Version : 1.13.1 Ember Version : 2.6.0 Ember CLI Qunit :…
KuKa
  • 51
  • 6
0
votes
1 answer

How to use a script block with HTMLBars

I am wanting to use Google Adsense with an Ember site I'm working on. However, if I just copy the code block I get from Google I get this error: Error: `SCRIPT` tags are not allowed in HTMLBars templates (on line 3) After doing some searching,…
Caleb Sayre
  • 401
  • 1
  • 4
  • 12