
BREAKING CHANGE: Angular is now fully camel case. Before: <p *ng-if="cond"> <my-cmp [my-prop]="exp"> <my-cmp (my-event)="action()"> <my-cmp [(my-prop)]="prop"> <input #my-input> <template ng-for #my-item [ng-for-of]=items #my-index="index"> After <p *ngIf="cond"> <my-cmp [myProp]="exp"> <my-cmp (myEvent)="action()"> <my-cmp [(myProp)]="prop"> <input #myInput>`, <template ngFor="#my-item" [ngForOf]=items #myIndex="index"> The full details are found in [angular2/docs/migration/kebab-case.md](https://github.com/angular/angular/blob/master/modules/angular2/docs/migration/kebab-case.md)
23 lines
530 B
HTML
23 lines
530 B
HTML
<!doctype html>
|
|
<html>
|
|
<title>Angular Upgrade 2.0</title>
|
|
<style>
|
|
user {
|
|
background-color: lightyellow;
|
|
border: 2px solid darkorange;
|
|
display: inline-block;
|
|
width: 150px;
|
|
padding: 1em;
|
|
}
|
|
</style>
|
|
<body>
|
|
<upgrade-app ng-controller="Index" [user]="name" (reset)="name=''">
|
|
Your name: <input ngModel="name">
|
|
<hr>
|
|
<span class="greeting">Greetings from {{name}}!</span>
|
|
</upgrade-app>
|
|
<script src="/benchmarks_external/src/angular.js"></script>
|
|
$SCRIPTS$
|
|
</body>
|
|
</html>
|