Vincent's Blog


  • Home

  • Categories

  • Archives

  • Tags

Angular2 - Class - NgZone

Posted on 2016-01-29   |   In Angular2
官网文档说的足够用了 An injectable service for executing work inside or outside of the Angular zone. The most common use of this service is to optimize perfo ...
Read more »

Angular2 - Class - InjectMetadata

Posted on 2016-01-28   |   In Angular2
看来要把Injector 和 provide 一起看了才能理解通注入这块 来自官网的提示 Injectable Services Notice that we imported the Angular Injectable function and applied that function as ...
Read more »

Angular2 - Class - HostBindingMetadata_HostListenerMetadata

Posted on 2016-01-28   |   In Angular2
@HostBindingMetadata 其实就是directive 的metadata里的那个host的属性绑定@HostListener 对应是host 的事件绑定 上个例子 @Directive({selector: '[ngModel]'})class NgModelSt ...
Read more »

Angular2 - Class - EventEmitter

Posted on 2016-01-28   |   In Angular2
EventEmitter 就是用于发出一个event,一般用于output @Component({ selector: 'zippy', template: ` <div class="zippy"> <div (click)="toggle()">T ...
Read more »

Angular2 - Class - AppViewManager/EmbeddedViewRef

Posted on 2016-01-27   |   In Angular2
这里描述讲了些关于view的概念,太好了! View就是一堆元素的组成,一起创建一起消灭 一个view可以有多个View Containers 元素里的内嵌的view 可以通过ViewContainerRef 来操作 开始不清楚怎么看到这个ViewRef,后来跟踪到 AppViewManage ...
Read more »

Angular2 - Class - ElementRef

Posted on 2016-01-27   |   In Angular2
An ElementRef is created for each element in the Template that contains a Directive, Component or data-binding. An ElementRef is backed by a render- ...
Read more »

Angular2 - Class - DirectiveResolver

Posted on 2016-01-26   |   In Angular2
DirectiveResolver resolve(type: Type) : DirectiveMetadataReturn DirectiveMetadata for a given Type. resolve(type: Type): DirectiveMetadata { v ...
Read more »

Angular2 - Class - AttributeMetadata

Posted on 2016-01-26   |   In Angular2
Specifies that a constant attribute value should be injected.The directive can inject constant string literals of host element attributes. 注入此指令获取当前 ...
Read more »

Angular2 - Class - XHR

Posted on 2016-01-26   |   In Angular2
就定义了一个空方法export class XHR { get(url: string): Promise<string> { return null; }}要改名字 rename it into TemplateLoader后来搜到这个东西在 ...
Read more »

Angular2 - Class - UrlResolver

Posted on 2016-01-26   |   In Angular2
UrlResolver 具有非常实际的用途,特别在部署上 Used by the Compiler when resolving HTML and CSS template URLs. This class can be overridden by the application developer ...
Read more »
<i class="fa fa-angle-left"></i>1…232425…29<i class="fa fa-angle-right"></i>
Vincent Guo

Vincent Guo

the blog to remeber all things about code

290 posts
44 categories
103 tags
RSS
github twitter facebook google weibo
Links
  • KunLin
  • Rx Introduction
  • 三哥
  • 元龙
© 2024 Vincent Guo
Powered by Hexo
Theme - NexT.Mist