angular 2 render directives

angular 2 render directives

ID:39776600

大小:180.80 KB

页数:9页

时间:2019-07-11

angular 2 render directives_第1页
angular 2 render directives_第2页
angular 2 render directives_第3页
angular 2 render directives_第4页
angular 2 render directives_第5页
资源描述:

《angular 2 render directives》由会员上传分享,免费在线阅读,更多相关内容在学术论文-天天文库

1、Angular2RenderDirectivesSTATUS: DRAFTyjbanov@google.comA render directive is a new kind of directive introduced in Angular 2. It addresses the need to implement platformspecific features that Angular core does not provide outofthebox. Render directives provide API to the developer to inter

2、act directly with the Render API and platform APIs, such as browser HTML DOM API.This document describes the design for render directives for the browser. It is likely that we will need a similar concept for nonbrowser environments, but that is out of scope for this document. Code samples 

3、in this document are written in Dart but apply to TypeScript as well.BackgroundDesignSelecting NodesRenderDirective annotationDefining render directivesContext objectsValue bindingAutopipesLifecycleEventsBackgroundAngular’s application layer is designed to be platformagnostic. This include

4、s DI, directives, change detection and the template language. It does not mean that you write an application once and run it on all platforms. It means you learn the core Angular concepts and APIs once, and reuse that knowledge on many platforms. However, a given Angular application target

5、s a specific platform, and therefore needs access to that platform’s features. Usecases include:Binding to native properties, such as “classList” (DOMTokenList), “style” (CSSStyleDeclaration) and “attributes” (NamedNodeMap).Animations, overlays and other styling and theming aspectsCustom d

6、ata modelstoDOM syncing, for example:Game scene graph synced to canvasVirtualDOM synced to real HTML DOMChart data synced to SVGDesignDefinition: Render directives is a developerfacing API for implementing browserspecific features in Angular.Render directives live in the render layer and o

7、perate on native HTML DOM nodes and View objects as defined in Angular’s Render API. They do not directly participate it change detection and dependency injection. The application is connected to render directives through the Renderer, and can pass data throug

当前文档最多预览五页,下载文档查看全文

此文档下载收益归作者所有

当前文档最多预览五页,下载文档查看全文
温馨提示:
1. 部分包含数学公式或PPT动画的文件,查看预览时可能会显示错乱或异常,文件下载后无此问题,请放心下载。
2. 本文档由用户上传,版权归属用户,天天文库负责整理代发布。如果您对本文档版权有争议请及时联系客服。
3. 下载前请仔细阅读文档内容,确认文档内容符合您的需求后进行下载,若出现内容与标题不符可向本站投诉处理。
4. 下载文档时可能由于网络波动等原因无法下载或下载错误,付费完成后未能成功下载的用户请联系客服处理。