diff --git a/public/docs/_examples/attribute-directives/ts/src/app/app.component.1.html b/public/docs/_examples/attribute-directives/ts/app/app.component.1.html similarity index 66% rename from public/docs/_examples/attribute-directives/ts/src/app/app.component.1.html rename to public/docs/_examples/attribute-directives/ts/app/app.component.1.html index a07e40597b..177c90f5da 100644 --- a/public/docs/_examples/attribute-directives/ts/src/app/app.component.1.html +++ b/public/docs/_examples/attribute-directives/ts/app/app.component.1.html @@ -1,4 +1,4 @@

My First Attribute Directive

-Highlight me! +Highlight me! \ No newline at end of file diff --git a/public/docs/_examples/attribute-directives/ts/src/app/app.component.html b/public/docs/_examples/attribute-directives/ts/app/app.component.html similarity index 81% rename from public/docs/_examples/attribute-directives/ts/src/app/app.component.html rename to public/docs/_examples/attribute-directives/ts/app/app.component.html index 28dc4658b3..11eba50590 100644 --- a/public/docs/_examples/attribute-directives/ts/src/app/app.component.html +++ b/public/docs/_examples/attribute-directives/ts/app/app.component.html @@ -9,12 +9,12 @@ -

Highlight me!

+

Highlight me!

-

+

Highlight me too!

diff --git a/public/docs/_examples/attribute-directives/ts/src/app/app.component.ts b/public/docs/_examples/attribute-directives/ts/app/app.component.ts similarity index 82% rename from public/docs/_examples/attribute-directives/ts/src/app/app.component.ts rename to public/docs/_examples/attribute-directives/ts/app/app.component.ts index ea434251f8..cb7435f6b0 100644 --- a/public/docs/_examples/attribute-directives/ts/src/app/app.component.ts +++ b/public/docs/_examples/attribute-directives/ts/app/app.component.ts @@ -1,5 +1,5 @@ // #docregion -import {Component} from 'angular2/angular2'; +import {Component} from 'angular2/core'; import {Highlight} from './highlight.directive' @Component({ diff --git a/public/docs/_examples/attribute-directives/ts/src/app/boot.ts b/public/docs/_examples/attribute-directives/ts/app/boot.ts similarity index 60% rename from public/docs/_examples/attribute-directives/ts/src/app/boot.ts rename to public/docs/_examples/attribute-directives/ts/app/boot.ts index dd6bfc08e1..7a69edae1b 100644 --- a/public/docs/_examples/attribute-directives/ts/src/app/boot.ts +++ b/public/docs/_examples/attribute-directives/ts/app/boot.ts @@ -1,5 +1,5 @@ // #docregion -import {bootstrap} from 'angular2/angular2'; +import {bootstrap} from 'angular2/platform/browser' import {AppComponent} from './app.component'; bootstrap(AppComponent); diff --git a/public/docs/_examples/attribute-directives/ts/src/app/highlight.directive.1.ts b/public/docs/_examples/attribute-directives/ts/app/highlight.directive.1.ts similarity index 53% rename from public/docs/_examples/attribute-directives/ts/src/app/highlight.directive.1.ts rename to public/docs/_examples/attribute-directives/ts/app/highlight.directive.1.ts index 10b98f7b00..c28b7a83d0 100644 --- a/public/docs/_examples/attribute-directives/ts/src/app/highlight.directive.1.ts +++ b/public/docs/_examples/attribute-directives/ts/app/highlight.directive.1.ts @@ -1,14 +1,14 @@ // #docregion -import {Directive, ElementRef, Renderer, Input} from 'angular2/angular2'; +import {Directive, ElementRef, Renderer, Input} from 'angular2/core'; @Directive({ - selector: '[my-highlight]' + selector: '[myHighlight]' }) export class Highlight { constructor(el: ElementRef, renderer: Renderer) { //el.nativeElement.style.backgroundColor = 'yellow'; - renderer.setElementStyle(el, 'background-color', 'yellow'); + renderer.setElementStyle(el, 'backgroundColor', 'yellow'); } } // #enddocregion \ No newline at end of file diff --git a/public/docs/_examples/attribute-directives/ts/src/app/highlight.directive.2.ts b/public/docs/_examples/attribute-directives/ts/app/highlight.directive.2.ts similarity index 75% rename from public/docs/_examples/attribute-directives/ts/src/app/highlight.directive.2.ts rename to public/docs/_examples/attribute-directives/ts/app/highlight.directive.2.ts index 3b8a5831b7..f1d6eab9b7 100644 --- a/public/docs/_examples/attribute-directives/ts/src/app/highlight.directive.2.ts +++ b/public/docs/_examples/attribute-directives/ts/app/highlight.directive.2.ts @@ -1,8 +1,8 @@ // #docregion -import {Directive, ElementRef, Renderer, Input} from 'angular2/angular2'; +import {Directive, ElementRef, Renderer, Input} from 'angular2/core'; @Directive({ - selector: '[my-highlight]', + selector: '[myHighlight]', // #docregion host host: { '(mouseenter)': 'onMouseEnter()', @@ -22,7 +22,7 @@ export class Highlight { onMouseLeave() { this._highlight(null); } private _highlight(color: string) { - this.renderer.setElementStyle(this.el, 'background-color', color); + this.renderer.setElementStyle(this.el, 'backgroundColor', color); } // #enddocregion mouse-methods diff --git a/public/docs/_examples/attribute-directives/ts/src/app/highlight.directive.ts b/public/docs/_examples/attribute-directives/ts/app/highlight.directive.ts similarity index 81% rename from public/docs/_examples/attribute-directives/ts/src/app/highlight.directive.ts rename to public/docs/_examples/attribute-directives/ts/app/highlight.directive.ts index 15d262a45f..80ad13ea9a 100644 --- a/public/docs/_examples/attribute-directives/ts/src/app/highlight.directive.ts +++ b/public/docs/_examples/attribute-directives/ts/app/highlight.directive.ts @@ -1,9 +1,9 @@ // #docplaster // #docregion full -import {Directive, ElementRef, Renderer, Input} from 'angular2/angular2'; +import {Directive, ElementRef, Renderer, Input} from 'angular2/core'; @Directive({ - selector: '[my-highlight]', + selector: '[myHighlight]', host: { '(mouseenter)': 'onMouseEnter()', '(mouseleave)': 'onMouseLeave()' @@ -22,7 +22,7 @@ export class Highlight { // #docregion full // #docregion class-1 // #docregion color - @Input('my-highlight') highlightColor: string; + @Input('myHighlight') highlightColor: string; // #enddocregion color private _defaultColor = 'red'; @@ -42,7 +42,7 @@ export class Highlight { onMouseLeave() { this._highlight(null); } private _highlight(color:string) { - this.renderer.setElementStyle(this.el, 'background-color', color); + this.renderer.setElementStyle(this.el, 'backgroundColor', color); } } // #enddocregion class-1 diff --git a/public/docs/_examples/attribute-directives/ts/src/index.html b/public/docs/_examples/attribute-directives/ts/index.html similarity index 65% rename from public/docs/_examples/attribute-directives/ts/src/index.html rename to public/docs/_examples/attribute-directives/ts/index.html index c5a241a6e2..a2013f6e20 100644 --- a/public/docs/_examples/attribute-directives/ts/src/index.html +++ b/public/docs/_examples/attribute-directives/ts/index.html @@ -4,8 +4,8 @@ Attribute Directives - - + +