You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
> Please make sure that the installed angular package is newer than 1.3.1. If it's not, change the version in `.meteor/versions` file.
@@ -99,14 +99,10 @@ var $compile = window.ngInjector.get('$compile');
99
99
We use the injector of our module that we stored in window to inject the required dependencies for our component instantiation.
100
100
101
101
```javascript
102
-
this.scope=$rootScope.$new(true);
102
+
this.scope=$rootScope.$new();
103
103
```
104
104
105
-
We create a new scope which is isolated. **Why isolated?** One of our next steps will be to create the `list` component.
106
-
In this step, we will use the `ngRepeat` directive to create each todos item. Foreach item, `ngRepeat` will create an isolated scope.
107
-
So we mimic the future behavior. Though it's not really different now, it will help us avoiding any problems later.
108
-
109
-
> My recommendation is to use isolated scope if your template is surrounded by `each` statement.
105
+
We create a new scope for the component.
110
106
111
107
```javascript
112
108
var controller =window.ngInjector.instantiate(window.TodosItem, {data:this.data, $scope:this.scope});
@@ -327,7 +323,7 @@ class TodosItem extends ReactiveComponent {
327
323
328
324
Now we can mark `todos-item` as finished and move on to the next component.
329
325
330
-
> You can check out the [commits comparison](https://github.com/ozsay/blaze2angular/compare/128b0af7795b296ec8f554e8b5dac4830b4fc725...82e8af9bbebc4ebfa588fe852993853f8c06a249) for the full change list.
326
+
> You can check out the [commits comparison](https://github.com/ozsay/blaze2angular/compare/f4b898519a4d5783d86439afb0e191e7a8fc03a3...628923d5be3b321d69aafa9b989630a3bdf2f0ff) for the full change list.
331
327
332
328
We will use the same principles to convert the `list` component.
333
329
Please follow [this commits comparison](https://github.com/) to check out the change list.
0 commit comments