Questions tagged [ember-observable]

7 questions
4
votes
1 answer

Ember.js 1.13: The right way to observe a passed-in attribute of component?

I'm trying to upgrade my project to Ember 1.13, and I'm a bit confused about the behavior of new attrs of component, especially when I have to observe them. For example, my test component observes bar which is a parameter passed from outside. I know…
starshine wang
  • 616
  • 1
  • 8
  • 13
2
votes
1 answer

Trigger a jQuery DOM manipulation event through an EmberJS action

I have a very trivial Ember APP in the making. For the sake of my own sanity, I prefer to do the necessary animations and simple dom events like mouseover/clicks through jQuery within EmberViews. Let's say I have this: App.SomeView =…
Parijat Kalia
  • 4,929
  • 10
  • 50
  • 77
1
vote
1 answer

Ember navbar UI condition based on currentPath

I must not be doing something right. I have the following: application.hbs {{#view App.NavbarView}}{{/view}} {{outlet}} with the following template for Navbar _navbar.hbs
Rob Bennet
  • 477
  • 1
  • 9
  • 21
0
votes
1 answer

Ember.set and Ember.setProperties gives different results

I ran into a problem in my Ember application where setting multiple properties using Ember.set and Ember.setProperties produced a buggy result in the latter. Constructed an exact scenario here. HBS: Name: {{name}}
Place:…
Vignesh Raja
  • 7,927
  • 1
  • 33
  • 42
0
votes
1 answer

Change CSS when model changes or DOM value changes in ember

I have a table and it gets the data from DS model which dynamically updates from the database. I need alert of color (css) change of the block( particular “td”) in UI when the data updates in the table. Here is my code:
0
votes
2 answers

How to know whether a method is a call made by me thgh code or its from observer

I have a method in a view just like following. testMethod : function() { //run code }.observes('property1') This method can either be trigerred directly by calling or triggered by the property1 observer. Is it possible to know inside the method,…
thecodejack
  • 12,689
  • 10
  • 44
  • 59
0
votes
1 answer

Can an Ember Controller bind to changed events for it's own properties?

Given a controller like: App.SignInController = Ember.Controller.extend authenticated: false authenticatedDidChange: (() => console.log @get('authenticated') ).observes('controller.authenticated') This doesn't seem to work so I must not…
rmontgomery429
  • 14,660
  • 17
  • 61
  • 66