# Migrating from Ember 1.8 to 1.10 - observing a property on a controller in a view stopped working

**URL:** <https://discuss.emberjs.com/t/migrating-from-ember-1-8-to-1-10-observing-a-property-on-a-controller-in-a-view-stopped-working/7382>\
**Category:** Uncategorized\
**Created:** [February 22, 2015, 1:03pm UTC](https://discuss.emberjs.com/t/migrating-from-ember-1-8-to-1-10-observing-a-property-on-a-controller-in-a-view-stopped-working/7382 "2015-02-22T13:03:10Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![szimek](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.emberjs.com/szimek/32/15521_2.png) [@szimek](https://discuss.emberjs.com/u/szimek)\
**Post date:** [February 22, 2015, 1:03pm UTC](https://discuss.emberjs.com/t/migrating-from-ember-1-8-to-1-10-observing-a-property-on-a-controller-in-a-view-stopped-working/7382/1 "2015-02-22T13:03:10Z")

</div>

Hey,

I’m migrating from Ember CLI 1.x to 2.0 and thus migrating from Ember 1.8.1 to 1.10 as well. It looks like observers in one of my views stopped working. I’ve a got the following view (simplified):

```
import Ember from 'ember';

export default Ember.View.extend({
    didInsertElement: function () {
        this.set('path', this.$().find('path'));
    },
    sendingProgressDidChange: function () {
        var progress = this.get('controller.model.transfer.sendingProgress');
        this._calculateSVGAnim(progress);
    }.observes('controller.model.transfer.sendingProgress'),

    receivingProgressDidChange: function () {
        var progress = this.get('controller.model.transfer.receivingProgress');
        this._calculateSVGAnim(progress);
    }.observes('controller.model.transfer.receivingProgress')
});

```

After updating Ember to 1.10, both `sendingProgressDidChange` and `receivingProgressDidChange` observers stopped working. However, if I add `this.get('controller')` to `didInsertElement` function, they work again…

Any ideas what can be wrong?

---

<div class="post-metadata">

**Author:** ![varblob](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.emberjs.com/varblob/32/10304_2.png) [@varblob](https://discuss.emberjs.com/u/varblob)\
**Post date:** [February 22, 2015, 6:51pm UTC](https://discuss.emberjs.com/t/migrating-from-ember-1-8-to-1-10-observing-a-property-on-a-controller-in-a-view-stopped-working/7382/2 "2015-02-22T18:51:29Z")

</div>

controller is a computed property perhaps there is some oddness in observing computed properties?

You may want to pass in the model explicitly to your view and change your view to a component in preparation for the deprecation of controller in 2.0.  
eg

in the controller template

```
{{component model=model}}

```

---

<div class="post-metadata">

**Author:** ![szimek](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.emberjs.com/szimek/32/15521_2.png) [@szimek](https://discuss.emberjs.com/u/szimek)\
**Post date:** [February 22, 2015, 7:24pm UTC](https://discuss.emberjs.com/t/migrating-from-ember-1-8-to-1-10-observing-a-property-on-a-controller-in-a-view-stopped-working/7382/3 "2015-02-22T19:24:46Z")

</div>

Thanks! I’ll try using component instead.
