I'm trying to write a component integration test, a la this blog post, but my component has a link-to to a dynamic route and the href property isn't being filled in. Here is a simplified version of what I'm trying to do.  My component'...
I'm trying to bind a static class 'form-control' and a dynamic property value 'color' to the class attribute of an input helper, however, the syntax I'm using just outputs this to the rendered DOM element  class="form-cont...
I need to combine linkTo and action helpers in Ember.js. My code is:  {{#link-to 'index'}}<span {{action 'clear'}}>Clear</span>{{/link-to}}   But I would like to make this something like this:  {{#link-to 'index' {...
I'm running into a bit of a brick wall with how to render content inside some dynamic HTML content which I don't control, with Ember v1.13.1. In this particular scenario, I'm getting a navigation head, and navigation foot from a service c...
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 value...
I'm trying to test a link-to href property in an ember component. with ember 2.0 but when I render the component with renter hbs it renders this:  <div id=\"23\" class=\"ember-view\"> <p><!----></p> <div...
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": "Com...
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 th...
This is the simplified version of my situation:  <!-- app/templates/charts/index.hbs --> {{#each model as |chart|}}   {{partial "charts/chart"}} {{/each}}  <!-- app/templates/charts/show.hbs --> {{partial "charts/chart"}}...
I have some problems rendering dropdown menu with Ember.js and HtmlBars. Data I have for menu is in array, something like this:  [{name: 'A', lvl: 0}, {name: 'B', lvl: 1}, {name: 'C', lvl: 0}, {name: 'D', lvl: 1}, , {n...

Tags

Recent Questions

Top Questions

Home Tags Terms of Service Privacy Policy DMCA Contact Us

©2020 All rights reserved.