Skip to content

Commit 9314158

Browse files
committed
0c33452 refactor(core): type ComponentRef, ComponentFactory and ComponentFixture by the component type
1 parent 75d6197 commit 9314158

File tree

835 files changed

+1078
-1019
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

835 files changed

+1078
-1019
lines changed

BUILD_INFO

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
Sat Apr 30 19:37:48 UTC 2016
2-
62a0809e81843a22742803a7e1cb8863798d03b7
1+
Sat Apr 30 20:06:51 UTC 2016
2+
0c33452166789b08a23686e6590eb7af5242de79

alt_router.js

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

animate.js

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

animate/testing.js

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

bundles/angular2-all-testing.umd.dev.js

+26-17
Large diffs are not rendered by default.

bundles/angular2-all.umd.dev.js

+3-4
Large diffs are not rendered by default.

bundles/angular2-all.umd.js

+2-3
Original file line numberDiff line numberDiff line change
@@ -10928,7 +10928,6 @@ return /******/ (function(modules) { // webpackBootstrap
1092810928
});
1092910929
// TODO(rado): profile and decide whether bounds checks should be added
1093010930
// to the methods below.
10931-
// TODO(tbosch): use a generic C once ts2dart supports it.
1093210931
ViewContainerRef_.prototype.createEmbeddedView = function (templateRef, context, index) {
1093310932
if (context === void 0) { context = null; }
1093410933
if (index === void 0) { index = -1; }
@@ -24560,12 +24559,12 @@ return /******/ (function(modules) { // webpackBootstrap
2456024559
var hostViewFactoryVar = _this._compileComponent(hostMeta, [compMeta], [], statements);
2456124560
var compFactoryVar = compMeta.type.name + "NgFactory";
2456224561
statements.push(o.variable(compFactoryVar)
24563-
.set(o.importExpr(_COMPONENT_FACTORY_IDENTIFIER)
24562+
.set(o.importExpr(_COMPONENT_FACTORY_IDENTIFIER, [o.importType(compMeta.type)])
2456424563
.instantiate([
2456524564
o.literal(compMeta.selector),
2456624565
o.variable(hostViewFactoryVar),
2456724566
o.importExpr(compMeta.type)
24568-
], o.importType(_COMPONENT_FACTORY_IDENTIFIER, null, [o.TypeModifier.Const])))
24567+
], o.importType(_COMPONENT_FACTORY_IDENTIFIER, [o.importType(compMeta.type)], [o.TypeModifier.Const])))
2456924568
.toDeclStmt(null, [o.StmtModifier.Final]));
2457024569
exportedVars.push(compFactoryVar);
2457124570
});

bundles/angular2-all.umd.min.js

+3-3
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

bundles/angular2.dev.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -23652,7 +23652,7 @@ System.register("angular2/src/compiler/offline_compiler", ["angular2/src/compile
2365223652
var hostMeta = compile_metadata_1.createHostComponentMeta(compMeta.type, compMeta.selector);
2365323653
var hostViewFactoryVar = _this._compileComponent(hostMeta, [compMeta], [], statements);
2365423654
var compFactoryVar = compMeta.type.name + "NgFactory";
23655-
statements.push(o.variable(compFactoryVar).set(o.importExpr(_COMPONENT_FACTORY_IDENTIFIER).instantiate([o.literal(compMeta.selector), o.variable(hostViewFactoryVar), o.importExpr(compMeta.type)], o.importType(_COMPONENT_FACTORY_IDENTIFIER, null, [o.TypeModifier.Const]))).toDeclStmt(null, [o.StmtModifier.Final]));
23655+
statements.push(o.variable(compFactoryVar).set(o.importExpr(_COMPONENT_FACTORY_IDENTIFIER, [o.importType(compMeta.type)]).instantiate([o.literal(compMeta.selector), o.variable(hostViewFactoryVar), o.importExpr(compMeta.type)], o.importType(_COMPONENT_FACTORY_IDENTIFIER, [o.importType(compMeta.type)], [o.TypeModifier.Const]))).toDeclStmt(null, [o.StmtModifier.Final]));
2365623656
exportedVars.push(compFactoryVar);
2365723657
});
2365823658
return this._codegenSourceModule(moduleUrl, statements, exportedVars);

bundles/angular2.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -23652,7 +23652,7 @@ System.register("angular2/src/compiler/offline_compiler", ["angular2/src/compile
2365223652
var hostMeta = compile_metadata_1.createHostComponentMeta(compMeta.type, compMeta.selector);
2365323653
var hostViewFactoryVar = _this._compileComponent(hostMeta, [compMeta], [], statements);
2365423654
var compFactoryVar = compMeta.type.name + "NgFactory";
23655-
statements.push(o.variable(compFactoryVar).set(o.importExpr(_COMPONENT_FACTORY_IDENTIFIER).instantiate([o.literal(compMeta.selector), o.variable(hostViewFactoryVar), o.importExpr(compMeta.type)], o.importType(_COMPONENT_FACTORY_IDENTIFIER, null, [o.TypeModifier.Const]))).toDeclStmt(null, [o.StmtModifier.Final]));
23655+
statements.push(o.variable(compFactoryVar).set(o.importExpr(_COMPONENT_FACTORY_IDENTIFIER, [o.importType(compMeta.type)]).instantiate([o.literal(compMeta.selector), o.variable(hostViewFactoryVar), o.importExpr(compMeta.type)], o.importType(_COMPONENT_FACTORY_IDENTIFIER, [o.importType(compMeta.type)], [o.TypeModifier.Const]))).toDeclStmt(null, [o.StmtModifier.Final]));
2365623656
exportedVars.push(compFactoryVar);
2365723657
});
2365823658
return this._codegenSourceModule(moduleUrl, statements, exportedVars);

bundles/angular2.min.js

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

bundles/testing.dev.js

+25-12
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

bundles/web_worker/ui.dev.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -17501,7 +17501,7 @@ System.register("angular2/src/compiler/offline_compiler", ["angular2/src/compile
1750117501
var hostMeta = compile_metadata_1.createHostComponentMeta(compMeta.type, compMeta.selector);
1750217502
var hostViewFactoryVar = _this._compileComponent(hostMeta, [compMeta], [], statements);
1750317503
var compFactoryVar = compMeta.type.name + "NgFactory";
17504-
statements.push(o.variable(compFactoryVar).set(o.importExpr(_COMPONENT_FACTORY_IDENTIFIER).instantiate([o.literal(compMeta.selector), o.variable(hostViewFactoryVar), o.importExpr(compMeta.type)], o.importType(_COMPONENT_FACTORY_IDENTIFIER, null, [o.TypeModifier.Const]))).toDeclStmt(null, [o.StmtModifier.Final]));
17504+
statements.push(o.variable(compFactoryVar).set(o.importExpr(_COMPONENT_FACTORY_IDENTIFIER, [o.importType(compMeta.type)]).instantiate([o.literal(compMeta.selector), o.variable(hostViewFactoryVar), o.importExpr(compMeta.type)], o.importType(_COMPONENT_FACTORY_IDENTIFIER, [o.importType(compMeta.type)], [o.TypeModifier.Const]))).toDeclStmt(null, [o.StmtModifier.Final]));
1750517505
exportedVars.push(compFactoryVar);
1750617506
});
1750717507
return this._codegenSourceModule(moduleUrl, statements, exportedVars);

bundles/web_worker/worker.dev.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -28122,7 +28122,7 @@ System.register("angular2/src/compiler/offline_compiler", ["angular2/src/compile
2812228122
var hostMeta = compile_metadata_1.createHostComponentMeta(compMeta.type, compMeta.selector);
2812328123
var hostViewFactoryVar = _this._compileComponent(hostMeta, [compMeta], [], statements);
2812428124
var compFactoryVar = compMeta.type.name + "NgFactory";
28125-
statements.push(o.variable(compFactoryVar).set(o.importExpr(_COMPONENT_FACTORY_IDENTIFIER).instantiate([o.literal(compMeta.selector), o.variable(hostViewFactoryVar), o.importExpr(compMeta.type)], o.importType(_COMPONENT_FACTORY_IDENTIFIER, null, [o.TypeModifier.Const]))).toDeclStmt(null, [o.StmtModifier.Final]));
28125+
statements.push(o.variable(compFactoryVar).set(o.importExpr(_COMPONENT_FACTORY_IDENTIFIER, [o.importType(compMeta.type)]).instantiate([o.literal(compMeta.selector), o.variable(hostViewFactoryVar), o.importExpr(compMeta.type)], o.importType(_COMPONENT_FACTORY_IDENTIFIER, [o.importType(compMeta.type)], [o.TypeModifier.Const]))).toDeclStmt(null, [o.StmtModifier.Final]));
2812628126
exportedVars.push(compFactoryVar);
2812728127
});
2812828128
return this._codegenSourceModule(moduleUrl, statements, exportedVars);

common.js

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)