本文整理汇总了TypeScript中angular2/src/facade/collection.MapWrapper.set方法的典型用法代码示例。如果您正苦于以下问题:TypeScript MapWrapper.set方法的具体用法?TypeScript MapWrapper.set怎么用?TypeScript MapWrapper.set使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类angular2/src/facade/collection.MapWrapper
的用法示例。
在下文中一共展示了MapWrapper.set方法的10个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的TypeScript代码示例。
示例1: bindPropertySetter
bindPropertySetter(name) {
MapWrapper.set(this.propertySetters, name, setterFactory(name));
}
示例2: registerType
registerType(type: Type, typeInfo: Map<Type, any>): void {
MapWrapper.set(this._typeInfo, type, typeInfo);
}
示例3: reply
reply(url, response) {
MapWrapper.set(this._responses, url, response);
}
示例4: _bindPropertyAst
_bindPropertyAst(name, ast, current: CompileElement, newAttrs) {
var binder = current.bindElement();
binder.bindProperty(dashCaseToCamelCase(name), ast);
MapWrapper.set(newAttrs, name, ast.source);
}
示例5: bindVariable
bindVariable(contextName, templateName) {
MapWrapper.set(this.variableBindings, contextName, templateName);
MapWrapper.set(this.protoLocals, templateName, null);
}
示例6: setView
/**
* Overrides the [View] for a component.
*
* @param {Type} component
* @param {ViewDefinition} view
*/
setView(component: Type, view: View): void {
this._checkOverrideable(component);
MapWrapper.set(this._templates, component, view);
}
示例7:
(attrValue, attrName) => { MapWrapper.set(attrs, attrName, attrValue); });
示例8: registerType
registerType(type, typeInfo) { MapWrapper.set(this._typeInfo, type, typeInfo); }
示例9:
MapWrapper.forEach(renderProtoView.variableBindings, (mappedName, varName) => {
MapWrapper.set(variableBindings, varName, mappedName);
});
示例10:
MapWrapper.forEach(ebb.propertySetters, (setter, propertyName) => {
MapWrapper.set(propertySetters, propertyName, setter);
});