设为首页 收藏本站
查看: 775|回复: 0

[软件发布] AngularJS 1.5.0

[复制链接]

尚未签到

发表于 2015-12-25 08:48:58 | 显示全部楼层 |阅读模式
欢迎加入运维网交流群:263444886   DSC0000.jpg
DSC0001.png   AngularJS 1.5.0-rc.0 发布,更新如下:
特性

  •   $parse: provide a mechanism to access the locals object, $locals(0ea53503)
  •   $resource: add proper support for cancelling requests, $cancelRequest()(98528be3,#9332, #13050, #13058, #13210)

  •   ngAnimate: provide ng-[event]-prepare>
  •   ngLocale: add support for standalone months
    (96c73a06,#3744, #10247, #12642, #12844)
  •   ngMock: destroy $rootScope after each test
    (b75c0d8d,#13433)
  •   ngTransclude: don't overwrite the contents with an unfilled optional slot
    (0812af49,#13426)
  •   ngView: reference resolved locals in scope, resolveAs: '$resolve'(983b0598,#13400)
Bug 修复

  •   $compile:

    •   swap keys and values for transclude definition object
      (c3a26911,#13439)
    •   include non-elements in default transclusion slot
      (df6fade6)
    •   support merging special attribute names in replace directives
      (a5ff651a,#13317, #13318)

  •   $http: throw if url passed is not a string
    (6628b4f1,#12925, #13444)
  •   $parse:

    •   prevent assignment on constructor properties
      (5a674f3b,#13417)
    •   handle interceptors with undefined expressions
      (4473b81c)

  •   $sanitize: blacklist SVG  elements
    (7a668cdd,#13453)
  •   formatNumber: cope with large and small number corner cases
    (6a0686d4,#13394, #8674, #12709, #8705, #12707, #10246, #10252)
  •   input: add missing chars to URL validation regex
    (e4bb8387,#13379, #13460)
  •   ngAnimate:

    •   consider options.delay value for closing timeout
      (7ffb2d3c,#13355, #13363)
    •   ensure animate runner is the same with and without animations
      (546a277d,#13205, #13347)
    •   ignore children without animation data when closing them
      (77419cf1,#11992, #13424)

    •   do not>

  •   ngMock: clear out $providerInjector after each test
    (a72c12bd,#13397, #13416)
  •   ngOptions: don't $dirty multiple select after compilation
    (c7a2028a,#13211, #13326)
  •   ngTransclude:

    •   don't replace existing content if no transcluded content exists
      (c3ae6ed7,#11839)
    •   fix case where ngTransclude attribute value equals its key
      (7ddbc9aa,#12934, #13383)

重大更新

  •   $compile: due to c3a26911,
  This is only a breaking change to a feature that was added in beta 2. If you have not started
using multi-slot transclusion then this will not affect you.

  The keys and values for the transclude map of the directive definition have been swapped around
to be more consistent with the other maps, such as scope and bindToController.
  Now the key is the slot name and the value is a normalized element selector.

  •   $resource: due to 98528be3,
  Using a promise as timeout is no longer supported and will log a
warning. It never worked the way it was supposed to anyway.
  Before:
var deferred = $q.defer();var User = $resource('/api/user/:id', {id: '@id'}, {  
  get: {method: 'GET', timeout: deferred.promise}
  
});var user = User.get({id: 1});   // sends a requestdeferred.resolve();             // aborts the request// Now, we need to re-define `User` passing a new promise as `timeout`// or else all subsequent requests from `someAction` will be abortedUser = $resource(...);
  
user = User.get({id: 2});
  After:
var User = $resource('/api/user/:id', {id: '@id'}, {  
  get: {method: 'GET', cancellable: true}
  
});var user = User.get({id: 1});   // sends a requestuser.$cancelRequest();      // aborts the requestuser = User.get({id: 2});

  •   $sanitize: due to 7a668cdd,
  The $sanitize service will now remove instances of the  tag from the content passed to it.
  This element is used to import external SVG resources, which is a security risk as the $sanitizeservice does not have access to the resource in order to sanitize it.

  •   ngView: due to 983b0598,
  A new property to access route resolves is now available on the scope of the route. The default name
for this property is $resolve. If your scope already contains a property with this name then it
will be hidden or overwritten.
  In this case, you should choose a custom name for this property, that does not collide with other
properties on the scope, by specifying the resolveAs property on the route.

  •   $parse: due to 0ea53503,
  A new property to access all the locals for an expression is now available on the scope. This property
is  $locals.

  •   If scope.$locals already exists, the way to reference this property is now this.$locals.
  •   If the locals themselves include a property $locals then the way to reference that is now $locals.$locals.
  更多内容请看:CHANGELOG.md
  下载页面:1.5.0-rc.0
  

运维网声明 1、欢迎大家加入本站运维交流群:群②:261659950 群⑤:202807635 群⑦870801961 群⑧679858003
2、本站所有主题由该帖子作者发表,该帖子作者与运维网享有帖子相关版权
3、所有作品的著作权均归原作者享有,请您和我们一样尊重他人的著作权等合法权益。如果您对作品感到满意,请购买正版
4、禁止制作、复制、发布和传播具有反动、淫秽、色情、暴力、凶杀等内容的信息,一经发现立即删除。若您因此触犯法律,一切后果自负,我们对此不承担任何责任
5、所有资源均系网友上传或者通过网络收集,我们仅提供一个展示、介绍、观摩学习的平台,我们不对其内容的准确性、可靠性、正当性、安全性、合法性等负责,亦不承担任何法律责任
6、所有作品仅供您个人学习、研究或欣赏,不得用于商业或者其他用途,否则,一切后果均由您自己承担,我们对此不承担任何法律责任
7、如涉及侵犯版权等问题,请您及时通知我们,我们将立即采取措施予以解决
8、联系人Email:admin@iyunv.com 网址:www.yunweiku.com

所有资源均系网友上传或者通过网络收集,我们仅提供一个展示、介绍、观摩学习的平台,我们不对其承担任何法律责任,如涉及侵犯版权等问题,请您及时通知我们,我们将立即处理,联系人Email:kefu@iyunv.com,QQ:1061981298 本贴地址:https://www.iyunv.com/thread-155930-1-1.html 上篇帖子: Sass 3.4.20 发布,CSS 框架 下篇帖子: NetHack 3.6.0 发布,地下城类游戏
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

扫码加入运维网微信交流群X

扫码加入运维网微信交流群

扫描二维码加入运维网微信交流群,最新一手资源尽在官方微信交流群!快快加入我们吧...

扫描微信二维码查看详情

客服E-mail:kefu@iyunv.com 客服QQ:1061981298


QQ群⑦:运维网交流群⑦ QQ群⑧:运维网交流群⑧ k8s群:运维网kubernetes交流群


提醒:禁止发布任何违反国家法律、法规的言论与图片等内容;本站内容均来自个人观点与网络等信息,非本站认同之观点.


本站大部分资源是网友从网上搜集分享而来,其版权均归原作者及其网站所有,我们尊重他人的合法权益,如有内容侵犯您的合法权益,请及时与我们联系进行核实删除!



合作伙伴: 青云cloud

快速回复 返回顶部 返回列表