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

Commit 8952cbd

Browse files
kasperlmhevery
authored andcommitted
fix(cookies): Make sure Cookies is injectable.
Also clean-up a few warnings and remove an unnecessary workaround in the todo example. Closes #856
1 parent 0281c06 commit 8952cbd

File tree

3 files changed

+2
-4
lines changed

3 files changed

+2
-4
lines changed

example/web/todo.dart

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -72,9 +72,6 @@ class TodoController {
7272
serverController.init(this);
7373
}
7474

75-
// workaround for https://github.com/angular/angular.dart/issues/37
76-
dynamic operator [](String key) => key == 'newItem' ? newItem : null;
77-
7875
void add() {
7976
if (newItem.isEmpty) return;
8077

lib/core_dom/cookies.dart

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,7 @@ class BrowserCookies {
9696
/**
9797
* Cookies service
9898
*/
99+
@NgInjectableService()
99100
class Cookies {
100101
BrowserCookies _browserCookies;
101102
Cookies(this._browserCookies);

test/io/test_files/templates/main.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
library test_files.main;
22

3-
import 'package:angular/core/module_internal.dart';
3+
import 'package:angular/core/annotation.dart';
44
import 'package:angular/tools/template_cache_annotation.dart';
55

66
part 'partial.dart';

0 commit comments

Comments
 (0)