Skip to content
This repository has been archived by the owner on Feb 22, 2018. It is now read-only.

Scope throwing error when running Chapter07 from tutorials #803

Closed
mvuksano opened this issue Mar 27, 2014 · 3 comments
Closed

Scope throwing error when running Chapter07 from tutorials #803

mvuksano opened this issue Mar 27, 2014 · 3 comments

Comments

@mvuksano
Copy link
Contributor

I tried running chapter 07 from angular.dart tutorial and I get the following error:

Observer reaction functions should not change model. 
These watch changes were detected: ctrl.allRecipes: [Instance of 'Recipe', Instance of 'Recipe', Instance of 'Recipe', Instance of 'Recipe', Instance of 'Recipe', Instance of 'Recipe', Instance of 'Recipe'] <= [Instance of 'Recipe', Instance of 'Recipe', Instance of 'Recipe', Instance of 'Recipe', Instance of 'Recipe', Instance of 'Recipe', Instance of 'Recipe']
These observe changes were detected: 

STACKTRACE:
#0      RootScope.flush.<anonymous closure> (package:angular/core/scope.dart:553:11)
#1      RootScope.flush (package:angular/core/scope.dart:559:9)
#2      RootScope.flush (package:angular/core/scope.dart:560:7)
#3      RootScope.flush (package:angular/core/scope.dart:560:7)
#4      apply (package:angular/core/scope.dart:260:23)
#5      _rootRun (dart:async/zone.dart:710)
#6      _rootRun (dart:async/zone.dart:711)
#7      _rootRun (dart:async/zone.dart:711)
#8      _ZoneDelegate.run (dart:async/zone.dart:440)
#9      NgZone._finishTurn (package:angular/core/zone.dart:96:21)
#10     NgZone._onRunBase (package:angular/core/zone.dart:61:43)
#11     _onRunUnary (package:angular/core/zone.dart:70:15)
#12     _ZoneDelegate.runUnary (dart:async/zone.dart:449)
#13     _CustomizedZone.runUnary (dart:async/zone.dart:654)
#14     _BaseZone.runUnaryGuarded (dart:async/zone.dart:569)
#15     _BaseZone.bindUnaryCallback.<anonymous closure> (dart:async/zone.dart:595)
@vicb
Copy link
Contributor

vicb commented Mar 27, 2014

I have a PR for porting to 099 but due to a filter bug I had to wait until 0910 but didn't get a chance to finish before my vacation. I'll PR the tuto next week of this is still not fixed.

On 27 mars 2014 12:20:33 CET, Marko Vuksanovic [email protected] wrote:

I tried running chapter 07 from angular.dart
tutorial
and I get
the following error:

Observer reaction functions should not change model. 
These watch changes were detected: ctrl.allRecipes: [Instance of
'Recipe', Instance of 'Recipe', Instance of 'Recipe', Instance of
'Recipe', Instance of 'Recipe', Instance of 'Recipe', Instance of
'Recipe'] <= [Instance of 'Recipe', Instance of 'Recipe', Instance of
'Recipe', Instance of 'Recipe', Instance of 'Recipe', Instance of
'Recipe', Instance of 'Recipe']
These observe changes were detected: 

STACKTRACE:
#0      RootScope.flush.<anonymous closure>
(package:angular/core/scope.dart:553:11)
#1      RootScope.flush (package:angular/core/scope.dart:559:9)
#2      RootScope.flush (package:angular/core/scope.dart:560:7)
#3      RootScope.flush (package:angular/core/scope.dart:560:7)
#4      apply (package:angular/core/scope.dart:260:23)
#5      _rootRun (dart:async/zone.dart:710)
#6      _rootRun (dart:async/zone.dart:711)
#7      _rootRun (dart:async/zone.dart:711)
#8      _ZoneDelegate.run (dart:async/zone.dart:440)
#9      NgZone._finishTurn (package:angular/core/zone.dart:96:21)
#10     NgZone._onRunBase (package:angular/core/zone.dart:61:43)
#11     _onRunUnary (package:angular/core/zone.dart:70:15)
#12     _ZoneDelegate.runUnary (dart:async/zone.dart:449)
#13     _CustomizedZone.runUnary (dart:async/zone.dart:654)
#14     _BaseZone.runUnaryGuarded (dart:async/zone.dart:569)
#15     _BaseZone.bindUnaryCallback.<anonymous closure>
(dart:async/zone.dart:595)

Reply to this email directly or view it on GitHub:
#803

@smallg
Copy link

smallg commented Apr 11, 2014

I also had this problem, and example code no Impure function for allRecipes in Charpter_07, I don't know how to fix it.

@vicb
Copy link
Contributor

vicb commented Apr 16, 2014

This has been fixed in the tuto

@vicb vicb closed this as completed Apr 16, 2014
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

No branches or pull requests

3 participants