{"action":"created","issue":{"url":"https://api.github.com/repos/angular/angular/issues/3170","labels_url":"https://api.github.com/repos/angular/angular/issues/3170/labels{/name}","comments_url":"https://api.github.com/repos/angular/angular/issues/3170/comments","events_url":"https://api.github.com/repos/angular/angular/issues/3170/events","html_url":"https://github.com/angular/angular/issues/3170","id":96253283,"number":3170,"title":"angular router error when use CSSClass directive","user":{"login":"gastrodia","id":4869158,"avatar_url":"https://avatars.githubusercontent.com/u/4869158?v=3","gravatar_id":"","url":"https://api.github.com/users/gastrodia","html_url":"https://github.com/gastrodia","followers_url":"https://api.github.com/users/gastrodia/followers","following_url":"https://api.github.com/users/gastrodia/following{/other_user}","gists_url":"https://api.github.com/users/gastrodia/gists{/gist_id}","starred_url":"https://api.github.com/users/gastrodia/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gastrodia/subscriptions","organizations_url":"https://api.github.com/users/gastrodia/orgs","repos_url":"https://api.github.com/users/gastrodia/repos","events_url":"https://api.github.com/users/gastrodia/events{/privacy}","received_events_url":"https://api.github.com/users/gastrodia/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-07-21T07:55:32Z","updated_at":"2015-07-21T08:41:52Z","closed_at":null,"body":"my html is link this:\r\n\r\n<li  *ng-for=\"#item of items\">\r\n\r\n\t<a href=\"javascript:;\">\r\n\r\n        <i [class]=\"item.icon\"></i>\r\n\r\n\t<span >{{item.title}}</span>\r\n\r\n\t</a>\r\n\r\n</li>\r\n\r\nand then angular router throw errors:\r\n\r\nSyntaxError: Failed to execute 'add' on 'DOMTokenList': The token provided must not be empty.\r\nSTACKTRACE:\r\nError: Failed to execute 'add' on 'DOMTokenList': The token provided must not be empty.\r\n    at Error (native) at BrowserDomAdapter.execute.BrowserDomAdapter.addClass\r\n\r\n(http://localhost:8020/resource/lib/angular2.0.0-alpha.28_router.dev.js:19559:31)\r\n\r\n    at DomView.execute.DomView.setElementClass (http://localhost:8020/resource/lib/angular2.0.0-alpha.28_router.dev.js:14410:19)\r\n\r\n    at $__0.execute.DomRenderer.setElementClass (http://localhost:8020/resource/lib/angular2.0.0-alpha.28_router.dev.js:23099:18)\r\n\r\n    at execute.CSSClass._toggleClass (http://localhost:8020/resource/lib/angular2.0.0-alpha.28_router.dev.js:16035:26)\r\n\r\n    at http://localhost:8020/resource/lib/angular2.0.0-alpha.28_router.dev.js:16028:18\r\n\r\n    at IterableChanges.execute.IterableChanges.forEachAddedItem \r\n(http://localhost:8020/resource/lib/angular2.0.0-alpha.28_router.dev.js:9453:15)\r\n\r\n    at execute.CSSClass._applyArrayChanges (http://localhost:8020/resource/lib/angular2.0.0-alpha.28_router.dev.js:16027:16)\r\n\r\n    at execute.CSSClass.onCheck (http://localhost:8020/resource/lib/angular2.0.0-alpha.28_router.dev.js:15990:20)\r\n\r\n    at AbstractChangeDetector.ChangeDetector_LeftSider_embedded_1.detectChangesInRecords (eval at <anonymous> (http://localhost:8020/resource/lib/angular2.0.0-alpha.28_router.dev.js:9068:20), <anonymous>:108:40)"},"comment":{"url":"https://api.github.com/repos/angular/angular/issues/comments/123215628","html_url":"https://github.com/angular/angular/issues/3170#issuecomment-123215628","issue_url":"https://api.github.com/repos/angular/angular/issues/3170","id":123215628,"user":{"login":"gastrodia","id":4869158,"avatar_url":"https://avatars.githubusercontent.com/u/4869158?v=3","gravatar_id":"","url":"https://api.github.com/users/gastrodia","html_url":"https://github.com/gastrodia","followers_url":"https://api.github.com/users/gastrodia/followers","following_url":"https://api.github.com/users/gastrodia/following{/other_user}","gists_url":"https://api.github.com/users/gastrodia/gists{/gist_id}","starred_url":"https://api.github.com/users/gastrodia/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gastrodia/subscriptions","organizations_url":"https://api.github.com/users/gastrodia/orgs","repos_url":"https://api.github.com/users/gastrodia/repos","events_url":"https://api.github.com/users/gastrodia/events{/privacy}","received_events_url":"https://api.github.com/users/gastrodia/received_events","type":"User","site_admin":false},"created_at":"2015-07-21T08:41:51Z","updated_at":"2015-07-21T08:41:51Z","body":"SyntaxError: Failed to execute 'add' on 'DOMTokenList': The token provided must not be empty. in [start active  in null]\r\n\r\nSTACKTRACE:\r\nError: SyntaxError: Failed to execute 'add' on 'DOMTokenList': The token provided must not be empty. in [start active  in null]\r\n\r\n    at ChangeDetectionError.BaseException (http://localhost:8020/resource/lib/angular2.dev.js:7713:25)\r\n    at new ChangeDetectionError (http://localhost:8020/resource/lib/angular2.dev.js:9004:66)\r\n    at AbstractChangeDetector.execute.AbstractChangeDetector.throwError (http://localhost:8020/resource/lib/angular2.dev.js:19972:19)\r\n    at AbstractChangeDetector.ChangeDetector_LeftSider_comp_0.detectChangesInRecords (eval at <anonymous> (http://localhost:8020/resource/lib/angular2.dev.js:9914:20), <anonymous>:116:16)\r\n    at AbstractChangeDetector.execute.AbstractChangeDetector._detectChanges (http://localhost:8020/resource/lib/angular2.dev.js:19936:18)\r\n    at AbstractChangeDetector.execute.AbstractChangeDetector._detectChangesInShadowDomChildren (http://localhost:8020/resource/lib/angular2.dev.js:19957:20)\r\n    at AbstractChangeDetector.execute.AbstractChangeDetector._detectChanges (http://localhost:8020/resource/lib/angular2.dev.js:19940:18)\r\n    at AbstractChangeDetector.execute.AbstractChangeDetector._detectChangesInShadowDomChildren (http://localhost:8020/resource/lib/angular2.dev.js:19957:20)\r\n    at AbstractChangeDetector.execute.AbstractChangeDetector._detectChanges (http://localhost:8020/resource/lib/angular2.dev.js:19940:18)\r\n    at AbstractChangeDetector.execute.AbstractChangeDetector.detectChanges (http://localhost:8020/resource/lib/angular2.dev.js:19928:18)"}}