当前位置: 首页>>代码示例>>TypeScript>>正文


TypeScript ListWrapper.fill方法代码示例

本文整理汇总了TypeScript中angular2/src/facade/collection.ListWrapper.fill方法的典型用法代码示例。如果您正苦于以下问题:TypeScript ListWrapper.fill方法的具体用法?TypeScript ListWrapper.fill怎么用?TypeScript ListWrapper.fill使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在angular2/src/facade/collection.ListWrapper的用法示例。


在下文中一共展示了ListWrapper.fill方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的TypeScript代码示例。

示例1: dehydrate

 dehydrate() {
   this._destroyPipes();
   ListWrapper.fill(this.values, uninitialized);
   ListWrapper.fill(this.changes, false);
   ListWrapper.fill(this.pipes, null);
   ListWrapper.fill(this.prevContexts, uninitialized);
   this.locals = null;
 }
开发者ID:Dineshchse,项目名称:angular,代码行数:8,代码来源:dynamic_change_detector.ts

示例2: constructor

  constructor(private changeControlStrategy: string, private dispatcher: any,
              private pipeRegistry: PipeRegistry, private protos: List<ProtoRecord>,
              private directiveRecords: List<any>) {
    super();
    this.values = ListWrapper.createFixedSize(protos.length + 1);
    this.pipes = ListWrapper.createFixedSize(protos.length + 1);
    this.prevContexts = ListWrapper.createFixedSize(protos.length + 1);
    this.changes = ListWrapper.createFixedSize(protos.length + 1);

    ListWrapper.fill(this.values, uninitialized);
    ListWrapper.fill(this.pipes, null);
    ListWrapper.fill(this.prevContexts, uninitialized);
    ListWrapper.fill(this.changes, false);
    this.locals = null;
    this.directives = null;
  }
开发者ID:Dineshchse,项目名称:angular,代码行数:16,代码来源:dynamic_change_detector.ts

示例3: constructor

 constructor(changeControlStrategy, dispatcher, pipeRegistry, protoRecords, directiveMementos) {
   super();
   this.dispatcher = dispatcher;
   this.pipeRegistry = pipeRegistry;
   this.values = ListWrapper.createFixedSize(protoRecords.length + 1);
   this.pipes = ListWrapper.createFixedSize(protoRecords.length + 1);
   this.prevContexts = ListWrapper.createFixedSize(protoRecords.length + 1);
   this.changes = ListWrapper.createFixedSize(protoRecords.length + 1);
   ListWrapper.fill(this.values, uninitialized);
   ListWrapper.fill(this.pipes, null);
   ListWrapper.fill(this.prevContexts, uninitialized);
   ListWrapper.fill(this.changes, false);
   this.locals = null;
   this.protos = protoRecords;
   this.directiveMementos = directiveMementos;
   this.changeControlStrategy = changeControlStrategy;
 }
开发者ID:gdi2290,项目名称:sample-Angular2,代码行数:17,代码来源:dynamic_change_detector.ts

示例4: constructor

 constructor(
   proto:RenderProtoView, rootNodes:List<any>,
   boundTextNodes: List<any>, boundElements:List<any>, viewContainers:List<any>, contentTags:List<any>) {
   this.proto = proto;
   this.rootNodes = rootNodes;
   this.boundTextNodes = boundTextNodes;
   this.boundElements = boundElements;
   this.viewContainers = viewContainers;
   this.contentTags = contentTags;
   this.lightDoms = ListWrapper.createFixedSize(boundElements.length);
   ListWrapper.fill(this.lightDoms, null);
   this.componentChildViews = ListWrapper.createFixedSize(boundElements.length);
   this.hydrated = false;
   this.eventHandlerRemovers = null;
 }
开发者ID:tavwizard,项目名称:angular,代码行数:15,代码来源:view.ts

示例5: it

 it('should support negative end', () => {
   ListWrapper.fill(l, 9, -2, -1);
   expect(l).toEqual([1, 2, 9, 4]);
 });
开发者ID:cedriclam,项目名称:angular,代码行数:4,代码来源:collection_spec.ts


注:本文中的angular2/src/facade/collection.ListWrapper.fill方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。