chore(rename): rename View and Template concepts for #1244
This commit is contained in:

committed by
Jeremy Elbourn

parent
564477b8a0
commit
bf7933714a
@ -1,7 +1,7 @@
|
||||
import {int, isPresent} from 'angular2/src/facade/lang';
|
||||
import {reflector} from 'angular2/src/reflection/reflection';
|
||||
import {getIntParameter, bindAction} from 'angular2/src/test_lib/benchmark_util';
|
||||
import {bootstrap, Component, Viewport, Template, ViewContainer, Compiler}
|
||||
import {bootstrap, Component, Viewport, View, ViewContainer, Compiler}
|
||||
from 'angular2/angular2';
|
||||
import {PromiseWrapper} from 'angular2/src/facade/async';
|
||||
import {ListWrapper} from 'angular2/src/facade/collection';
|
||||
@ -84,9 +84,9 @@ export function setupReflectorForApp() {
|
||||
'parameters': [],
|
||||
'annotations': [
|
||||
new Component({selector: 'scroll-app'}),
|
||||
new Template({
|
||||
new View({
|
||||
directives: [ScrollAreaComponent, If, For],
|
||||
inline: `
|
||||
template: `
|
||||
<div>
|
||||
<div style="display: flex">
|
||||
<scroll-area id="testArea"></scroll-area>
|
||||
|
@ -1,7 +1,7 @@
|
||||
import {int} from 'angular2/src/facade/lang';
|
||||
import {reflector} from 'angular2/src/reflection/reflection';
|
||||
import {getIntParameter, bindAction} from 'angular2/src/test_lib/benchmark_util';
|
||||
import {bootstrap, Component, Viewport, Template, ViewContainer, Compiler}
|
||||
import {bootstrap, Component, Viewport, View, ViewContainer, Compiler}
|
||||
from 'angular2/angular2';
|
||||
import {PromiseWrapper} from 'angular2/src/facade/async';
|
||||
import {ListWrapper, MapWrapper} from 'angular2/src/facade/collection';
|
||||
@ -103,14 +103,14 @@ export function setupReflectorForCells() {
|
||||
'annotations': [
|
||||
new Component({
|
||||
selector: 'company-name',
|
||||
bind: {
|
||||
properties: {
|
||||
'width': 'cell-width',
|
||||
'company': 'company'
|
||||
}
|
||||
}),
|
||||
new Template({
|
||||
new View({
|
||||
directives: [],
|
||||
inline: `<div [style]="style">{{company.name}}</div>`
|
||||
template: `<div [style]="style">{{company.name}}</div>`
|
||||
})
|
||||
]
|
||||
});
|
||||
@ -121,14 +121,14 @@ export function setupReflectorForCells() {
|
||||
'annotations': [
|
||||
new Component({
|
||||
selector: 'opportunity-name',
|
||||
bind: {
|
||||
properties: {
|
||||
'width': 'cell-width',
|
||||
'opportunity': 'opportunity'
|
||||
}
|
||||
}),
|
||||
new Template({
|
||||
new View({
|
||||
directives: [],
|
||||
inline: `<div [style]="style">{{opportunity.name}}</div>`
|
||||
template: `<div [style]="style">{{opportunity.name}}</div>`
|
||||
})
|
||||
]
|
||||
});
|
||||
@ -139,14 +139,14 @@ export function setupReflectorForCells() {
|
||||
'annotations': [
|
||||
new Component({
|
||||
selector: 'offering-name',
|
||||
bind: {
|
||||
properties: {
|
||||
'width': 'cell-width',
|
||||
'offering': 'offering'
|
||||
}
|
||||
}),
|
||||
new Template({
|
||||
new View({
|
||||
directives: [],
|
||||
inline: `<div [style]="style">{{offering.name}}</div>`
|
||||
template: `<div [style]="style">{{offering.name}}</div>`
|
||||
})
|
||||
]
|
||||
});
|
||||
@ -157,14 +157,14 @@ export function setupReflectorForCells() {
|
||||
'annotations': [
|
||||
new Component({
|
||||
selector: 'stage-buttons',
|
||||
bind: {
|
||||
properties: {
|
||||
'width': 'cell-width',
|
||||
'offering': 'offering'
|
||||
}
|
||||
}),
|
||||
new Template({
|
||||
new View({
|
||||
directives: [For],
|
||||
inline: `
|
||||
template: `
|
||||
<div [style]="style">
|
||||
<button template="for #stage of stages"
|
||||
[disabled]="stage.isDisabled"
|
||||
@ -183,14 +183,14 @@ export function setupReflectorForCells() {
|
||||
'annotations': [
|
||||
new Component({
|
||||
selector: 'account-cell',
|
||||
bind: {
|
||||
properties: {
|
||||
'width': 'cell-width',
|
||||
'account': 'account'
|
||||
}
|
||||
}),
|
||||
new Template({
|
||||
new View({
|
||||
directives: [],
|
||||
inline: `
|
||||
template: `
|
||||
<div [style]="style">
|
||||
<a href="/account/{{account.accountId}}">
|
||||
{{account.accountId}}
|
||||
@ -206,14 +206,14 @@ export function setupReflectorForCells() {
|
||||
'annotations': [
|
||||
new Component({
|
||||
selector: 'formatted-cell',
|
||||
bind: {
|
||||
properties: {
|
||||
'width': 'cell-width',
|
||||
'value': 'value'
|
||||
}
|
||||
}),
|
||||
new Template({
|
||||
new View({
|
||||
directives: [],
|
||||
inline: `<div [style]="style">{{formattedValue}}</div>`
|
||||
template: `<div [style]="style">{{formattedValue}}</div>`
|
||||
})
|
||||
]
|
||||
});
|
||||
|
@ -6,7 +6,7 @@ import {Parser, Lexer, ChangeDetector, ChangeDetection}
|
||||
from 'angular2/change_detection';
|
||||
import {ExceptionHandler} from 'angular2/src/core/exception_handler';
|
||||
import {
|
||||
bootstrap, Component, Viewport, Template, ViewContainer, Compiler, onChange, NgElement, Decorator
|
||||
bootstrap, Component, Viewport, View, ViewContainer, Compiler, onChange, NgElement, Decorator
|
||||
} from 'angular2/angular2';
|
||||
import {reflector} from 'angular2/src/reflection/reflection';
|
||||
import {CompilerCache} from 'angular2/src/core/compiler/compiler';
|
||||
@ -174,7 +174,7 @@ export function setupReflectorForAngular() {
|
||||
'parameters': [[ViewContainer]],
|
||||
'annotations' : [new Viewport({
|
||||
selector: '[if]',
|
||||
bind: {
|
||||
properties: {
|
||||
'condition': 'if'
|
||||
}
|
||||
})]
|
||||
@ -185,7 +185,7 @@ export function setupReflectorForAngular() {
|
||||
'parameters': [[ViewContainer]],
|
||||
'annotations' : [new Viewport({
|
||||
selector: '[for]',
|
||||
bind: {
|
||||
properties: {
|
||||
'iterableChanges': 'of | iterableDiff'
|
||||
}
|
||||
})]
|
||||
|
@ -1,7 +1,7 @@
|
||||
import {int, FINAL} from 'angular2/src/facade/lang';
|
||||
import {reflector} from 'angular2/src/reflection/reflection';
|
||||
import {getIntParameter, bindAction} from 'angular2/src/test_lib/benchmark_util';
|
||||
import {Component, Viewport, Template, ViewContainer, Compiler}
|
||||
import {Component, Viewport, View, ViewContainer, Compiler}
|
||||
from 'angular2/angular2';
|
||||
import {PromiseWrapper} from 'angular2/src/facade/async';
|
||||
import {ListWrapper, MapWrapper} from 'angular2/src/facade/collection';
|
||||
@ -68,9 +68,9 @@ export function setupReflectorForScrollArea() {
|
||||
new Component({
|
||||
selector: 'scroll-area',
|
||||
}),
|
||||
new Template({
|
||||
new View({
|
||||
directives: [ScrollItemComponent, For],
|
||||
inline: `
|
||||
template: `
|
||||
<div>
|
||||
<div id="scrollDiv"
|
||||
[style]="scrollDivStyle"
|
||||
|
@ -1,6 +1,6 @@
|
||||
import {int} from 'angular2/src/facade/lang';
|
||||
import {reflector} from 'angular2/src/reflection/reflection';
|
||||
import {Component, Viewport, Template, ViewContainer, Compiler}
|
||||
import {Component, Viewport, View, ViewContainer, Compiler}
|
||||
from 'angular2/angular2';
|
||||
import {PromiseWrapper} from 'angular2/src/facade/async';
|
||||
import {ListWrapper, MapWrapper} from 'angular2/src/facade/collection';
|
||||
@ -51,11 +51,11 @@ export function setupReflectorForScrollItem() {
|
||||
'annotations': [
|
||||
new Component({
|
||||
selector: 'scroll-item',
|
||||
bind: {
|
||||
properties: {
|
||||
'offering': 'offering'
|
||||
}
|
||||
}),
|
||||
new Template({
|
||||
new View({
|
||||
directives: [
|
||||
CompanyNameComponent,
|
||||
OpportunityNameComponent,
|
||||
@ -64,7 +64,7 @@ export function setupReflectorForScrollItem() {
|
||||
AccountCellComponent,
|
||||
FormattedCellComponent
|
||||
],
|
||||
inline: `
|
||||
template: `
|
||||
<div class="row" [style]="itemStyle">
|
||||
<company-name [company]="offering.company"
|
||||
[cell-width]="companyNameWidth">
|
||||
|
Reference in New Issue
Block a user