BREAKING CHANGE: isolate scope bindings definition has changed and the inject option for the directive controller injection was removed. To migrate the code follow the example below:
scope: { myAttr: '@', myBind: '@', myExpression: '&', // myEval - usually not useful, but in cases where the expression is assignable, you can use '=' myAccessor: '=' // in directive's template change myAccessor() to myAccessor }
The removed `inject` wasn't generaly useful for directives so there should be no code using it.
关联issues
关闭 issues 必须在 footer 区域的分开的一行,以“Closes”关键词开头:
1
Close #234
当然也可以关闭多个:
1
Close #123, #245, #992
示例
feat($browser): onUrlChange event (popstate/hashchange/polling) Added new event to $browser:
forward popstate event if available
forward hashchange event if popstate not available
do polling when neither popstate nor hashchange available Breaks $browser.onHashChange, which was removed (use onUrlChange instead)
fix($compile): couple of unit tests for IE9
Older IEs serialize html uppercased, but IE9 does not… Would be better to expect case insensitive, unfortunately jasmine does not allow to user regexps for throw expectations.
Closes #392 Breaks foo.bar api, foo.baz should be used instead
This change simplifies the terminology as well as number of choices available to the developer. It also supports local name aliasing from the parent.
BREAKING CHANGE: isolate scope bindings definition has changed and the inject option for the directive controller injection was removed. To migrate the code follow the example below: Before:
scope: { myAttr: ‘@’, myBind: ‘@’, myExpression: ‘&’, // myEval - usually not useful, but in cases where the expression is assignable, you can use ‘=’ myAccessor: ‘=’ // in directive’s template change myAccessor() to myAccessor }
The removed inject wasn’t generaly useful for directives so there should be no code using it.
建议把Docker安装在linux系统上学习使用,如果使用 Windows 可以使用虚拟机安装 Ubuntu 进行学习。
补充一点,如果在windows上安装,官方推荐使用 windows 10 专业版,因为这个版本才包含Hyper-V的虚拟化服务,能让docker具有像linux一样的底层兼容性,如果没有使用这个版本,官方建议下载docker tool进行安装。当然还是建议Windows用户装linux虚拟机进行学习。