diff --git a/public/docs/_fragments/gettingstarted/e2e-spec-shared.js.md b/public/docs/_fragments/gettingstarted/e2e-spec-shared.js.md deleted file mode 100644 index 1bad711d86..0000000000 --- a/public/docs/_fragments/gettingstarted/e2e-spec-shared.js.md +++ /dev/null @@ -1,14 +0,0 @@ -``` - var expectedMsg = 'My First Angular 2 App'; - - // tests shared across languages - function sharedTests(basePath) { - beforeEach(function () { - browser.get(basePath + 'index.html'); - }); - - it('should display: ' + expectedMsg, function () { - expect(element(by.id('output')).getText()).toEqual(expectedMsg); - }); - } -``` \ No newline at end of file diff --git a/public/docs/_fragments/gettingstarted/js/app-bootstrap.js.md b/public/docs/_fragments/gettingstarted/js/app-bootstrap.js.md deleted file mode 100644 index 1d1b767eb7..0000000000 --- a/public/docs/_fragments/gettingstarted/js/app-bootstrap.js.md +++ /dev/null @@ -1,5 +0,0 @@ -``` -document.addEventListener('DOMContentLoaded', function() { - ng.bootstrap(AppComponent); -}); -``` \ No newline at end of file diff --git a/public/docs/_fragments/gettingstarted/js/app-class-w-annotations.js.md b/public/docs/_fragments/gettingstarted/js/app-class-w-annotations.js.md deleted file mode 100644 index 9f3d919dd3..0000000000 --- a/public/docs/_fragments/gettingstarted/js/app-class-w-annotations.js.md +++ /dev/null @@ -1,13 +0,0 @@ -``` -var AppComponent = ng - .Component({ - selector: 'my-app' - }) - .View({ - template: '

My First Angular 2 App

' - }) - .Class({ - constructor: function () { } - }); - -``` \ No newline at end of file diff --git a/public/docs/_fragments/gettingstarted/js/app-class.js.md b/public/docs/_fragments/gettingstarted/js/app-class.js.md deleted file mode 100644 index 814eeedd07..0000000000 --- a/public/docs/_fragments/gettingstarted/js/app-class.js.md +++ /dev/null @@ -1,5 +0,0 @@ -``` -.Class({ - constructor: function () { } -}); -``` \ No newline at end of file diff --git a/public/docs/_fragments/gettingstarted/js/app-component.js.md b/public/docs/_fragments/gettingstarted/js/app-component.js.md deleted file mode 100644 index 8015f6bac3..0000000000 --- a/public/docs/_fragments/gettingstarted/js/app-component.js.md +++ /dev/null @@ -1,5 +0,0 @@ -``` -.Component({ - selector: 'my-app' -}) -``` \ No newline at end of file diff --git a/public/docs/_fragments/gettingstarted/js/app-no-dsl.js.md b/public/docs/_fragments/gettingstarted/js/app-no-dsl.js.md deleted file mode 100644 index ce6a7103c6..0000000000 --- a/public/docs/_fragments/gettingstarted/js/app-no-dsl.js.md +++ /dev/null @@ -1,12 +0,0 @@ -``` -function AppComponent () {} - -AppComponent.annotations = [ - new ng.ComponentAnnotation({ - selector: 'my-app' - }), - new ng.ViewAnnotation({ - template: '

My First Angular 2 App

' - }) -]; -``` \ No newline at end of file diff --git a/public/docs/_fragments/gettingstarted/js/app-view.js.md b/public/docs/_fragments/gettingstarted/js/app-view.js.md deleted file mode 100644 index 1bc141e57f..0000000000 --- a/public/docs/_fragments/gettingstarted/js/app-view.js.md +++ /dev/null @@ -1,5 +0,0 @@ -``` -.View({ - template: '

My First Angular 2 App

' -}) -``` \ No newline at end of file diff --git a/public/docs/_fragments/gettingstarted/js/app.js.md b/public/docs/_fragments/gettingstarted/js/app.js.md deleted file mode 100644 index 0361497a67..0000000000 --- a/public/docs/_fragments/gettingstarted/js/app.js.md +++ /dev/null @@ -1,17 +0,0 @@ -``` -var AppComponent = ng - .Component({ - selector: 'my-app' - }) - .View({ - template: '

My First Angular 2 App

' - }) - .Class({ - constructor: function () { } - }); - -document.addEventListener('DOMContentLoaded', function() { - ng.bootstrap(AppComponent); -}); - -``` \ No newline at end of file diff --git a/public/docs/_fragments/gettingstarted/js/index.html.md b/public/docs/_fragments/gettingstarted/js/index.html.md deleted file mode 100644 index 7a6330d53d..0000000000 --- a/public/docs/_fragments/gettingstarted/js/index.html.md +++ /dev/null @@ -1,13 +0,0 @@ -``` - - - - - - - - - - - -``` \ No newline at end of file diff --git a/public/docs/_fragments/gettingstarted/ts/package.json.md b/public/docs/_fragments/gettingstarted/ts/package.json.md deleted file mode 100644 index a34d73e16f..0000000000 --- a/public/docs/_fragments/gettingstarted/ts/package.json.md +++ /dev/null @@ -1,18 +0,0 @@ -``` -{ - "name": "ng2-getting-started", - "version": "0.0.1", - "dependencies": { - "angular2": "2.0.0-alpha.35", - "es6-module-loader": "^0.16", - "systemjs": "^0.16", - "traceur": "0.0.91" - }, - "scripts": { - "postinstall": "cd src && tsd reinstall -r -o && cd ..", - "tsc": "tsc -p src -w", - "start": "live-server --open=src" - } -} - -``` \ No newline at end of file diff --git a/public/docs/_fragments/gettingstarted/ts/src/app-bootstrap.ts.md b/public/docs/_fragments/gettingstarted/ts/src/app-bootstrap.ts.md deleted file mode 100644 index 0e0314c557..0000000000 --- a/public/docs/_fragments/gettingstarted/ts/src/app-bootstrap.ts.md +++ /dev/null @@ -1,3 +0,0 @@ -``` -bootstrap(AppComponent); -``` \ No newline at end of file diff --git a/public/docs/_fragments/gettingstarted/ts/src/app-class-w-annotations.ts.md b/public/docs/_fragments/gettingstarted/ts/src/app-class-w-annotations.ts.md deleted file mode 100644 index 5e4b715b5b..0000000000 --- a/public/docs/_fragments/gettingstarted/ts/src/app-class-w-annotations.ts.md +++ /dev/null @@ -1,10 +0,0 @@ -``` -@Component({ - selector: 'my-app' -}) -@View({ - template: '

My First Angular 2 App

' -}) -class AppComponent { } - -``` \ No newline at end of file diff --git a/public/docs/_fragments/gettingstarted/ts/src/app-class.ts.md b/public/docs/_fragments/gettingstarted/ts/src/app-class.ts.md deleted file mode 100644 index 3c5cd42ccc..0000000000 --- a/public/docs/_fragments/gettingstarted/ts/src/app-class.ts.md +++ /dev/null @@ -1,3 +0,0 @@ -``` -class AppComponent { } -``` \ No newline at end of file diff --git a/public/docs/_fragments/gettingstarted/ts/src/app-import.ts.md b/public/docs/_fragments/gettingstarted/ts/src/app-import.ts.md deleted file mode 100644 index c3ed2b425e..0000000000 --- a/public/docs/_fragments/gettingstarted/ts/src/app-import.ts.md +++ /dev/null @@ -1,3 +0,0 @@ -``` -import {Component, View, bootstrap} from 'angular2/angular2'; -``` \ No newline at end of file diff --git a/public/docs/_fragments/gettingstarted/ts/src/app.ts.md b/public/docs/_fragments/gettingstarted/ts/src/app.ts.md deleted file mode 100644 index 7655cd50f3..0000000000 --- a/public/docs/_fragments/gettingstarted/ts/src/app.ts.md +++ /dev/null @@ -1,14 +0,0 @@ -``` -import {Component, View, bootstrap} from 'angular2/angular2'; - -@Component({ - selector: 'my-app' -}) -@View({ - template: '

My First Angular 2 App

' -}) -class AppComponent { } - -bootstrap(AppComponent); - -``` \ No newline at end of file diff --git a/public/docs/_fragments/gettingstarted/ts/src/index.html.md b/public/docs/_fragments/gettingstarted/ts/src/index.html.md deleted file mode 100644 index 2ac42e302d..0000000000 --- a/public/docs/_fragments/gettingstarted/ts/src/index.html.md +++ /dev/null @@ -1,18 +0,0 @@ -``` - - - - - - - - - - - - - - -``` \ No newline at end of file diff --git a/public/docs/_fragments/gettingstarted/ts/src/tsconfig.json.md b/public/docs/_fragments/gettingstarted/ts/src/tsconfig.json.md deleted file mode 100644 index 040725f664..0000000000 --- a/public/docs/_fragments/gettingstarted/ts/src/tsconfig.json.md +++ /dev/null @@ -1,11 +0,0 @@ -``` -{ - "compilerOptions": { - "target": "ES5", - "module": "commonjs", - "sourceMap": true, - "emitDecoratorMetadata": true, - "experimentalDecorators": true - } -} -``` \ No newline at end of file diff --git a/public/docs/_fragments/gettingstarted/ts/src/tsd.json.md b/public/docs/_fragments/gettingstarted/ts/src/tsd.json.md deleted file mode 100644 index e5c9f8607f..0000000000 --- a/public/docs/_fragments/gettingstarted/ts/src/tsd.json.md +++ /dev/null @@ -1,27 +0,0 @@ -``` -{ - "version": "v4", - "repo": "borisyankov/DefinitelyTyped", - "ref": "master", - "path": "typings", - "bundle": "typings/tsd.d.ts", - "installed": { - "angular2/angular2.d.ts": { - "commit": "cd2e71bb1f0459197e733be66fdeafaec600514d" - }, - "es6-promise/es6-promise.d.ts": { - "commit": "71d072b7354936b88d57c2029042d2da7c6ec0e7" - }, - "jasmine/jasmine.d.ts": { - "commit": "71d072b7354936b88d57c2029042d2da7c6ec0e7" - }, - "rx/rx.d.ts": { - "commit": "71d072b7354936b88d57c2029042d2da7c6ec0e7" - }, - "rx/rx-lite.d.ts": { - "commit": "71d072b7354936b88d57c2029042d2da7c6ec0e7" - } - } -} - -``` \ No newline at end of file diff --git a/public/docs/_fragments/jsconfig.json.md b/public/docs/_fragments/jsconfig.json.md deleted file mode 100644 index 5fea0ffa8f..0000000000 --- a/public/docs/_fragments/jsconfig.json.md +++ /dev/null @@ -1,8 +0,0 @@ -``` -{ - "compilerOptions": { - "target": "ES5", - "module": "commonjs" - } -} -``` \ No newline at end of file diff --git a/public/docs/_fragments/quickstart/e2e-spec-test.js.md b/public/docs/_fragments/quickstart/e2e-spec-test.js.md deleted file mode 100644 index 5baf160282..0000000000 --- a/public/docs/_fragments/quickstart/e2e-spec-test.js.md +++ /dev/null @@ -1,5 +0,0 @@ -``` - it('should display Alice', function() { - expect(element(by.id('output')).getText()).toEqual('Hello Alice'); - }); -``` \ No newline at end of file diff --git a/public/docs/_fragments/quickstart/index-head.html.md b/public/docs/_fragments/quickstart/index-head.html.md deleted file mode 100644 index cdb32cac7c..0000000000 --- a/public/docs/_fragments/quickstart/index-head.html.md +++ /dev/null @@ -1,7 +0,0 @@ -``` - Angular 2 Quickstart - - - - -``` \ No newline at end of file diff --git a/public/docs/_fragments/quickstart/index.html.md b/public/docs/_fragments/quickstart/index.html.md deleted file mode 100644 index 9145082feb..0000000000 --- a/public/docs/_fragments/quickstart/index.html.md +++ /dev/null @@ -1,15 +0,0 @@ -``` - - - Angular 2 Quickstart - - - - - - - - - - -``` \ No newline at end of file diff --git a/public/docs/_fragments/quickstart/package.json.md b/public/docs/_fragments/quickstart/package.json.md deleted file mode 100644 index cc9b690edb..0000000000 --- a/public/docs/_fragments/quickstart/package.json.md +++ /dev/null @@ -1,23 +0,0 @@ -``` -{ - "name": "ng2-quickstart", - "version": "0.0.1", - "license": "ICS", - "repository": {}, - "dependencies": { - "angular2": "2.0.0-alpha.35", - "es6-module-loader": "^0.16", - "systemjs": "^0.16", - "traceur": "0.0.91" - }, - "devDependencies": { - "jasmine-core": "^2.3.4", - "zone.js": "^0.5.3" - }, - "scripts": { - "postinstall": "cd src && tsd reinstall -r -o && cd ..", - "tsc": "tsc -p src -w", - "start": "live-server" - } -} -``` \ No newline at end of file diff --git a/public/docs/_fragments/quickstart/src/app-bootstrap.ts.md b/public/docs/_fragments/quickstart/src/app-bootstrap.ts.md deleted file mode 100644 index 0e0314c557..0000000000 --- a/public/docs/_fragments/quickstart/src/app-bootstrap.ts.md +++ /dev/null @@ -1,3 +0,0 @@ -``` -bootstrap(AppComponent); -``` \ No newline at end of file diff --git a/public/docs/_fragments/quickstart/src/app-import.ts.md b/public/docs/_fragments/quickstart/src/app-import.ts.md deleted file mode 100644 index c3ed2b425e..0000000000 --- a/public/docs/_fragments/quickstart/src/app-import.ts.md +++ /dev/null @@ -1,3 +0,0 @@ -``` -import {Component, View, bootstrap} from 'angular2/angular2'; -``` \ No newline at end of file diff --git a/public/docs/_fragments/quickstart/src/app.ts.md b/public/docs/_fragments/quickstart/src/app.ts.md deleted file mode 100644 index ee847c499c..0000000000 --- a/public/docs/_fragments/quickstart/src/app.ts.md +++ /dev/null @@ -1,20 +0,0 @@ -``` -import {Component, View, bootstrap} from 'angular2/angular2'; - -@Component({ - selector: 'app' -}) -@View({ - template: '

Hello {{ name }}

' -}) -export class AppComponent { - name : string; - - constructor() { - this.name = 'Alice'; - } -} - -bootstrap(AppComponent); - -``` \ No newline at end of file diff --git a/public/docs/_fragments/quickstart/src/tsconfig.json.md b/public/docs/_fragments/quickstart/src/tsconfig.json.md deleted file mode 100644 index 040725f664..0000000000 --- a/public/docs/_fragments/quickstart/src/tsconfig.json.md +++ /dev/null @@ -1,11 +0,0 @@ -``` -{ - "compilerOptions": { - "target": "ES5", - "module": "commonjs", - "sourceMap": true, - "emitDecoratorMetadata": true, - "experimentalDecorators": true - } -} -``` \ No newline at end of file diff --git a/public/docs/_fragments/quickstart/src/tsd.json.md b/public/docs/_fragments/quickstart/src/tsd.json.md deleted file mode 100644 index e5c9f8607f..0000000000 --- a/public/docs/_fragments/quickstart/src/tsd.json.md +++ /dev/null @@ -1,27 +0,0 @@ -``` -{ - "version": "v4", - "repo": "borisyankov/DefinitelyTyped", - "ref": "master", - "path": "typings", - "bundle": "typings/tsd.d.ts", - "installed": { - "angular2/angular2.d.ts": { - "commit": "cd2e71bb1f0459197e733be66fdeafaec600514d" - }, - "es6-promise/es6-promise.d.ts": { - "commit": "71d072b7354936b88d57c2029042d2da7c6ec0e7" - }, - "jasmine/jasmine.d.ts": { - "commit": "71d072b7354936b88d57c2029042d2da7c6ec0e7" - }, - "rx/rx.d.ts": { - "commit": "71d072b7354936b88d57c2029042d2da7c6ec0e7" - }, - "rx/rx-lite.d.ts": { - "commit": "71d072b7354936b88d57c2029042d2da7c6ec0e7" - } - } -} - -``` \ No newline at end of file diff --git a/public/docs/_fragments/quickstart/unit-tests.html.md b/public/docs/_fragments/quickstart/unit-tests.html.md deleted file mode 100644 index 5e479a172e..0000000000 --- a/public/docs/_fragments/quickstart/unit-tests.html.md +++ /dev/null @@ -1,56 +0,0 @@ -``` - - - -QuickStart Tests - - - - - - - - - - - - - - - - - - - - - - - -``` \ No newline at end of file diff --git a/public/docs/_fragments/styleguide/e2e-spec-shared.js.md b/public/docs/_fragments/styleguide/e2e-spec-shared.js.md deleted file mode 100644 index 137c29d855..0000000000 --- a/public/docs/_fragments/styleguide/e2e-spec-shared.js.md +++ /dev/null @@ -1,14 +0,0 @@ -``` - var expectedMsg = 'My First Angular 2 App'; - - // tests shared across languages - function sharedTests(basePath) { - beforeEach(function () { - browser.get(basePath + 'index.html'); - }); - - it('should display: '+ expectedMsg, function() { - expect(element(by.id('output')).getText()).toEqual(expectedMsg); - }); - } -``` \ No newline at end of file diff --git a/public/docs/_fragments/styleguide/js/app-bootstrap.js.md b/public/docs/_fragments/styleguide/js/app-bootstrap.js.md deleted file mode 100644 index 1d1b767eb7..0000000000 --- a/public/docs/_fragments/styleguide/js/app-bootstrap.js.md +++ /dev/null @@ -1,5 +0,0 @@ -``` -document.addEventListener('DOMContentLoaded', function() { - ng.bootstrap(AppComponent); -}); -``` \ No newline at end of file diff --git a/public/docs/_fragments/styleguide/js/app-class-w-annotations.js.md b/public/docs/_fragments/styleguide/js/app-class-w-annotations.js.md deleted file mode 100644 index 9f3d919dd3..0000000000 --- a/public/docs/_fragments/styleguide/js/app-class-w-annotations.js.md +++ /dev/null @@ -1,13 +0,0 @@ -``` -var AppComponent = ng - .Component({ - selector: 'my-app' - }) - .View({ - template: '

My First Angular 2 App

' - }) - .Class({ - constructor: function () { } - }); - -``` \ No newline at end of file diff --git a/public/docs/_fragments/styleguide/js/app-class.js.md b/public/docs/_fragments/styleguide/js/app-class.js.md deleted file mode 100644 index 814eeedd07..0000000000 --- a/public/docs/_fragments/styleguide/js/app-class.js.md +++ /dev/null @@ -1,5 +0,0 @@ -``` -.Class({ - constructor: function () { } -}); -``` \ No newline at end of file diff --git a/public/docs/_fragments/styleguide/js/app-component.js.md b/public/docs/_fragments/styleguide/js/app-component.js.md deleted file mode 100644 index 8015f6bac3..0000000000 --- a/public/docs/_fragments/styleguide/js/app-component.js.md +++ /dev/null @@ -1,5 +0,0 @@ -``` -.Component({ - selector: 'my-app' -}) -``` \ No newline at end of file diff --git a/public/docs/_fragments/styleguide/js/app-no-dsl.js.md b/public/docs/_fragments/styleguide/js/app-no-dsl.js.md deleted file mode 100644 index ce6a7103c6..0000000000 --- a/public/docs/_fragments/styleguide/js/app-no-dsl.js.md +++ /dev/null @@ -1,12 +0,0 @@ -``` -function AppComponent () {} - -AppComponent.annotations = [ - new ng.ComponentAnnotation({ - selector: 'my-app' - }), - new ng.ViewAnnotation({ - template: '

My First Angular 2 App

' - }) -]; -``` \ No newline at end of file diff --git a/public/docs/_fragments/styleguide/js/app-view.js.md b/public/docs/_fragments/styleguide/js/app-view.js.md deleted file mode 100644 index 1bc141e57f..0000000000 --- a/public/docs/_fragments/styleguide/js/app-view.js.md +++ /dev/null @@ -1,5 +0,0 @@ -``` -.View({ - template: '

My First Angular 2 App

' -}) -``` \ No newline at end of file diff --git a/public/docs/_fragments/styleguide/js/app.js.md b/public/docs/_fragments/styleguide/js/app.js.md deleted file mode 100644 index 0361497a67..0000000000 --- a/public/docs/_fragments/styleguide/js/app.js.md +++ /dev/null @@ -1,17 +0,0 @@ -``` -var AppComponent = ng - .Component({ - selector: 'my-app' - }) - .View({ - template: '

My First Angular 2 App

' - }) - .Class({ - constructor: function () { } - }); - -document.addEventListener('DOMContentLoaded', function() { - ng.bootstrap(AppComponent); -}); - -``` \ No newline at end of file diff --git a/public/docs/_fragments/styleguide/js/index.html.md b/public/docs/_fragments/styleguide/js/index.html.md deleted file mode 100644 index ecc5c90d4f..0000000000 --- a/public/docs/_fragments/styleguide/js/index.html.md +++ /dev/null @@ -1,13 +0,0 @@ -``` - - - - - - - - foo2 - - - -``` \ No newline at end of file diff --git a/public/docs/_fragments/styleguide/js/spec.js.md b/public/docs/_fragments/styleguide/js/spec.js.md deleted file mode 100644 index b6d2d70a44..0000000000 --- a/public/docs/_fragments/styleguide/js/spec.js.md +++ /dev/null @@ -1,9 +0,0 @@ -``` -describe("Jasmine sample test", function() { - - it("1+1 should be 2", function() { - var result = 1 + 1; - expect(result).toBe(2); - }); -}); -``` \ No newline at end of file diff --git a/public/docs/_fragments/styleguide/package.json.md b/public/docs/_fragments/styleguide/package.json.md deleted file mode 100644 index 809a7fc167..0000000000 --- a/public/docs/_fragments/styleguide/package.json.md +++ /dev/null @@ -1,17 +0,0 @@ -``` -{ - "name": "ng2-getting-started", - "version": "0.0.1", - "dependencies": { - "angular2": "2.0.0-alpha.35", - "es6-module-loader": "^0.16", - "systemjs": "^0.16", - "traceur": "0.0.91" - }, - "scripts": { - "postinstall": "cd src && tsd reinstall -r -o && cd ..", - "tsc": "tsc -p src -w", - "start": "live-server --open=src" - } -} -``` \ No newline at end of file diff --git a/public/docs/_fragments/styleguide/ts/app-bootstrap.js.md b/public/docs/_fragments/styleguide/ts/app-bootstrap.js.md deleted file mode 100644 index 299a9059b4..0000000000 --- a/public/docs/_fragments/styleguide/ts/app-bootstrap.js.md +++ /dev/null @@ -1,3 +0,0 @@ -``` -angular2_1.bootstrap(AppComponent); -``` \ No newline at end of file diff --git a/public/docs/_fragments/styleguide/ts/app-bootstrap.ts.md b/public/docs/_fragments/styleguide/ts/app-bootstrap.ts.md deleted file mode 100644 index 0e0314c557..0000000000 --- a/public/docs/_fragments/styleguide/ts/app-bootstrap.ts.md +++ /dev/null @@ -1,3 +0,0 @@ -``` -bootstrap(AppComponent); -``` \ No newline at end of file diff --git a/public/docs/_fragments/styleguide/ts/app-class-w-annotations.js.md b/public/docs/_fragments/styleguide/ts/app-class-w-annotations.js.md deleted file mode 100644 index b9746100fa..0000000000 --- a/public/docs/_fragments/styleguide/ts/app-class-w-annotations.js.md +++ /dev/null @@ -1,16 +0,0 @@ -``` -var AppComponent = (function () { - function AppComponent() { - } - AppComponent = __decorate([ - angular2_1.Component({ - selector: 'my-app' - }), - angular2_1.View({ - template: '

My First Angular 2 App

' - }), - __metadata('design:paramtypes', []) - ], AppComponent); - return AppComponent; -})(); -``` \ No newline at end of file diff --git a/public/docs/_fragments/styleguide/ts/app-class-w-annotations.ts.md b/public/docs/_fragments/styleguide/ts/app-class-w-annotations.ts.md deleted file mode 100644 index 5e4b715b5b..0000000000 --- a/public/docs/_fragments/styleguide/ts/app-class-w-annotations.ts.md +++ /dev/null @@ -1,10 +0,0 @@ -``` -@Component({ - selector: 'my-app' -}) -@View({ - template: '

My First Angular 2 App

' -}) -class AppComponent { } - -``` \ No newline at end of file diff --git a/public/docs/_fragments/styleguide/ts/app-class.ts.md b/public/docs/_fragments/styleguide/ts/app-class.ts.md deleted file mode 100644 index 3c5cd42ccc..0000000000 --- a/public/docs/_fragments/styleguide/ts/app-class.ts.md +++ /dev/null @@ -1,3 +0,0 @@ -``` -class AppComponent { } -``` \ No newline at end of file diff --git a/public/docs/_fragments/styleguide/ts/app-import.js.md b/public/docs/_fragments/styleguide/ts/app-import.js.md deleted file mode 100644 index 8448db759c..0000000000 --- a/public/docs/_fragments/styleguide/ts/app-import.js.md +++ /dev/null @@ -1,3 +0,0 @@ -``` -var angular2_1 = require('angular2/angular2'); -``` \ No newline at end of file diff --git a/public/docs/_fragments/styleguide/ts/app-import.ts.md b/public/docs/_fragments/styleguide/ts/app-import.ts.md deleted file mode 100644 index c3ed2b425e..0000000000 --- a/public/docs/_fragments/styleguide/ts/app-import.ts.md +++ /dev/null @@ -1,3 +0,0 @@ -``` -import {Component, View, bootstrap} from 'angular2/angular2'; -``` \ No newline at end of file diff --git a/public/docs/_fragments/styleguide/ts/app.js.md b/public/docs/_fragments/styleguide/ts/app.js.md deleted file mode 100644 index cd72a9055a..0000000000 --- a/public/docs/_fragments/styleguide/ts/app.js.md +++ /dev/null @@ -1,18 +0,0 @@ -``` -var angular2_1 = require('angular2/angular2'); -var AppComponent = (function () { - function AppComponent() { - } - AppComponent = __decorate([ - angular2_1.Component({ - selector: 'my-app' - }), - angular2_1.View({ - template: '

My First Angular 2 App

' - }), - __metadata('design:paramtypes', []) - ], AppComponent); - return AppComponent; -})(); - -``` \ No newline at end of file diff --git a/public/docs/_fragments/styleguide/ts/app.ts.md b/public/docs/_fragments/styleguide/ts/app.ts.md deleted file mode 100644 index 7655cd50f3..0000000000 --- a/public/docs/_fragments/styleguide/ts/app.ts.md +++ /dev/null @@ -1,14 +0,0 @@ -``` -import {Component, View, bootstrap} from 'angular2/angular2'; - -@Component({ - selector: 'my-app' -}) -@View({ - template: '

My First Angular 2 App

' -}) -class AppComponent { } - -bootstrap(AppComponent); - -``` \ No newline at end of file diff --git a/public/docs/_fragments/styleguide/ts/index.html.md b/public/docs/_fragments/styleguide/ts/index.html.md deleted file mode 100644 index b5b887b592..0000000000 --- a/public/docs/_fragments/styleguide/ts/index.html.md +++ /dev/null @@ -1,17 +0,0 @@ -``` - - - - - - - - - - - - - -``` \ No newline at end of file diff --git a/public/docs/_fragments/tsconfig.json.md b/public/docs/_fragments/tsconfig.json.md deleted file mode 100644 index 040725f664..0000000000 --- a/public/docs/_fragments/tsconfig.json.md +++ /dev/null @@ -1,11 +0,0 @@ -``` -{ - "compilerOptions": { - "target": "ES5", - "module": "commonjs", - "sourceMap": true, - "emitDecoratorMetadata": true, - "experimentalDecorators": true - } -} -``` \ No newline at end of file diff --git a/public/docs/_fragments/tsd.json.md b/public/docs/_fragments/tsd.json.md deleted file mode 100644 index e5c9f8607f..0000000000 --- a/public/docs/_fragments/tsd.json.md +++ /dev/null @@ -1,27 +0,0 @@ -``` -{ - "version": "v4", - "repo": "borisyankov/DefinitelyTyped", - "ref": "master", - "path": "typings", - "bundle": "typings/tsd.d.ts", - "installed": { - "angular2/angular2.d.ts": { - "commit": "cd2e71bb1f0459197e733be66fdeafaec600514d" - }, - "es6-promise/es6-promise.d.ts": { - "commit": "71d072b7354936b88d57c2029042d2da7c6ec0e7" - }, - "jasmine/jasmine.d.ts": { - "commit": "71d072b7354936b88d57c2029042d2da7c6ec0e7" - }, - "rx/rx.d.ts": { - "commit": "71d072b7354936b88d57c2029042d2da7c6ec0e7" - }, - "rx/rx-lite.d.ts": { - "commit": "71d072b7354936b88d57c2029042d2da7c6ec0e7" - } - } -} - -``` \ No newline at end of file diff --git a/public/docs/js/latest/api/core/APP_COMPONENT-const.jade b/public/docs/js/latest/api/core/APP_COMPONENT-const.jade deleted file mode 100644 index 84db618efa..0000000000 --- a/public/docs/js/latest/api/core/APP_COMPONENT-const.jade +++ /dev/null @@ -1,24 +0,0 @@ - -.l-main-section - p.location-badge. - exported from angular2/core - defined in angular2/src/core/application_tokens.ts (line 26) - - :markdown - An OpaqueToken representing the application root type in the Injector. - - ``` - @Component(...) - @View(...) - class MyApp { - ... - } - - bootstrap(MyApp).then((appRef:ApplicationRef) { - expect(appRef.injector.get(appComponentTypeToken)).toEqual(MyApp); - }); - - ``` - - - diff --git a/public/docs/js/latest/api/core/APP_ID-const.jade b/public/docs/js/latest/api/core/APP_ID-const.jade deleted file mode 100644 index 30d4c83361..0000000000 --- a/public/docs/js/latest/api/core/APP_ID-const.jade +++ /dev/null @@ -1,11 +0,0 @@ - -.l-main-section - p.location-badge. - exported from angular2/core - defined in angular2/src/core/render/dom/dom_tokens.ts (line 9) - - :markdown - A unique id (string) for an angular application. - - - diff --git a/public/docs/js/latest/api/core/AbstractBindingError-class.jade b/public/docs/js/latest/api/core/AbstractBindingError-class.jade deleted file mode 100644 index 6f15b0fe41..0000000000 --- a/public/docs/js/latest/api/core/AbstractBindingError-class.jade +++ /dev/null @@ -1,87 +0,0 @@ - -p.location-badge. - exported from angular2/core - defined in angular2/src/core/di/exceptions.ts (line 28) - -:markdown - Base class for all errors arising from misconfigured bindings. - - -.l-main-section - h2 Members - .l-sub-section - h3#constructor constructor - - - pre.prettyprint - code. - constructor(injector: Injector, key: Key, constructResolvingMessage: Function) - - :markdown - - - - - .l-sub-section - h3#message message - - - :markdown - - - - - - .l-sub-section - h3#keys keys - - - :markdown - - - - - - .l-sub-section - h3#injectors injectors - - - :markdown - - - - - - .l-sub-section - h3#constructResolvingMessage constructResolvingMessage - - - :markdown - - - - - - .l-sub-section - h3#addKey addKey - - - pre.prettyprint - code. - addKey(injector: Injector, key: Key) - - :markdown - - - - - - .l-sub-section - h3#context context - - - :markdown - - - - diff --git a/public/docs/js/latest/api/core/AbstractControl-class.jade b/public/docs/js/latest/api/core/AbstractControl-class.jade deleted file mode 100644 index c26829a75b..0000000000 --- a/public/docs/js/latest/api/core/AbstractControl-class.jade +++ /dev/null @@ -1,235 +0,0 @@ - -p.location-badge. - exported from angular2/core - defined in angular2/src/core/forms/model.ts (line 38) - -:markdown - Omitting from external API doc as this is really an abstract internal concept. - - -.l-main-section - h2 Members - .l-sub-section - h3#constructor constructor - - - pre.prettyprint - code. - constructor(validator: Function) - - :markdown - - - - - .l-sub-section - h3#validator validator - - - :markdown - - - - - - .l-sub-section - h3#value value - - - :markdown - - - - - - .l-sub-section - h3#status status - - - :markdown - - - - - - .l-sub-section - h3#valid valid - - - :markdown - - - - - - .l-sub-section - h3#errors errors - - - :markdown - - - - - - .l-sub-section - h3#pristine pristine - - - :markdown - - - - - - .l-sub-section - h3#dirty dirty - - - :markdown - - - - - - .l-sub-section - h3#touched touched - - - :markdown - - - - - - .l-sub-section - h3#untouched untouched - - - :markdown - - - - - - .l-sub-section - h3#valueChanges valueChanges - - - :markdown - - - - - - .l-sub-section - h3#markAsTouched markAsTouched - - - pre.prettyprint - code. - markAsTouched() - - :markdown - - - - - - .l-sub-section - h3#markAsDirty markAsDirty - - - pre.prettyprint - code. - markAsDirty({onlySelf}?: {onlySelf?: boolean}) - - :markdown - - - - - - .l-sub-section - h3#setParent setParent - - - pre.prettyprint - code. - setParent(parent: ControlGroup | ControlArray) - - :markdown - - - - - - .l-sub-section - h3#updateValidity updateValidity - - - pre.prettyprint - code. - updateValidity({onlySelf}?: {onlySelf?: boolean}) - - :markdown - - - - - - .l-sub-section - h3#updateValueAndValidity updateValueAndValidity - - - pre.prettyprint - code. - updateValueAndValidity({onlySelf, emitEvent}?: {onlySelf?: boolean, emitEvent?: boolean}) - - :markdown - - - - - - .l-sub-section - h3#find find - - - pre.prettyprint - code. - find(path: Array<string | number>| string) - - :markdown - - - - - - .l-sub-section - h3#getError getError - - - pre.prettyprint - code. - getError(errorCode: string, path?: string[]) - - :markdown - - - - - - .l-sub-section - h3#hasError hasError - - - pre.prettyprint - code. - hasError(errorCode: string, path?: string[]) - - :markdown - - - - diff --git a/public/docs/js/latest/api/core/AbstractControlDirective-class.jade b/public/docs/js/latest/api/core/AbstractControlDirective-class.jade deleted file mode 100644 index 2dae00df4a..0000000000 --- a/public/docs/js/latest/api/core/AbstractControlDirective-class.jade +++ /dev/null @@ -1,87 +0,0 @@ - -p.location-badge. - exported from angular2/core - defined in angular2/src/core/forms/directives/abstract_control_directive.ts (line 1) - -:markdown -.l-main-section - h2 Members - .l-sub-section - h3#control control - - - :markdown - - - - - - .l-sub-section - h3#value value - - - :markdown - - - - - - .l-sub-section - h3#valid valid - - - :markdown - - - - - - .l-sub-section - h3#errors errors - - - :markdown - - - - - - .l-sub-section - h3#pristine pristine - - - :markdown - - - - - - .l-sub-section - h3#dirty dirty - - - :markdown - - - - - - .l-sub-section - h3#touched touched - - - :markdown - - - - - - .l-sub-section - h3#untouched untouched - - - :markdown - - - - diff --git a/public/docs/js/latest/api/core/AfterContentChecked-interface.jade b/public/docs/js/latest/api/core/AfterContentChecked-interface.jade deleted file mode 100644 index 033185b180..0000000000 --- a/public/docs/js/latest/api/core/AfterContentChecked-interface.jade +++ /dev/null @@ -1,35 +0,0 @@ - -p.location-badge. - exported from angular2/core - defined in angular2/src/core/compiler/interfaces.ts (line 125) - -:markdown - Notify a directive when the bindings of all its content children have been checked (whether - they have changed or not). - - ## Example - - ``` - @Component(...) - class MyComponent implements AfterContentChecked { - afterContentChecked(): void { - } - } - ``` - - -.l-main-section - h2 Members - .l-sub-section - h3#afterContentChecked afterContentChecked - - - pre.prettyprint - code. - afterContentChecked() - - :markdown - - - - diff --git a/public/docs/js/latest/api/core/AfterContentInit-interface.jade b/public/docs/js/latest/api/core/AfterContentInit-interface.jade deleted file mode 100644 index e2ce10fba9..0000000000 --- a/public/docs/js/latest/api/core/AfterContentInit-interface.jade +++ /dev/null @@ -1,35 +0,0 @@ - -p.location-badge. - exported from angular2/core - defined in angular2/src/core/compiler/interfaces.ts (line 109) - -:markdown - Notify a directive when the bindings of all its content children have been checked the first - time (whether they have changed or not). - - ## Example - - ``` - @Component(...) - class MyComponent implements AfterContentInit { - afterContentInit(): void { - } - } - ``` - - -.l-main-section - h2 Members - .l-sub-section - h3#afterContentInit afterContentInit - - - pre.prettyprint - code. - afterContentInit() - - :markdown - - - - diff --git a/public/docs/js/latest/api/core/AfterViewChecked-interface.jade b/public/docs/js/latest/api/core/AfterViewChecked-interface.jade deleted file mode 100644 index 97337f2ad1..0000000000 --- a/public/docs/js/latest/api/core/AfterViewChecked-interface.jade +++ /dev/null @@ -1,35 +0,0 @@ - -p.location-badge. - exported from angular2/core - defined in angular2/src/core/compiler/interfaces.ts (line 157) - -:markdown - Notify a directive when the bindings of all its view children have been checked (whether they - have changed or not). - - ## Example - - ``` - @Component(...) - class MyComponent implements AfterViewChecked { - afterViewChecked(): void { - } - } - ``` - - -.l-main-section - h2 Members - .l-sub-section - h3#afterViewChecked afterViewChecked - - - pre.prettyprint - code. - afterViewChecked() - - :markdown - - - - diff --git a/public/docs/js/latest/api/core/AfterViewInit-interface.jade b/public/docs/js/latest/api/core/AfterViewInit-interface.jade deleted file mode 100644 index 3d44d70069..0000000000 --- a/public/docs/js/latest/api/core/AfterViewInit-interface.jade +++ /dev/null @@ -1,35 +0,0 @@ - -p.location-badge. - exported from angular2/core - defined in angular2/src/core/compiler/interfaces.ts (line 141) - -:markdown - Notify a directive when the bindings of all its view children have been checked the first time - (whether they have changed or not). - - ## Example - - ``` - @Component(...) - class MyComponent implements AfterViewInit { - afterViewInit(): void { - } - } - ``` - - -.l-main-section - h2 Members - .l-sub-section - h3#afterViewInit afterViewInit - - - pre.prettyprint - code. - afterViewInit() - - :markdown - - - - diff --git a/public/docs/js/latest/api/core/AppRootUrl-class.jade b/public/docs/js/latest/api/core/AppRootUrl-class.jade deleted file mode 100644 index 2b928fa1bd..0000000000 --- a/public/docs/js/latest/api/core/AppRootUrl-class.jade +++ /dev/null @@ -1,53 +0,0 @@ - -p.location-badge. - exported from angular2/core - defined in angular2/src/core/services/app_root_url.ts (line 2) - -:markdown - Specifies app root url for the application. - - Used by the Compiler when resolving HTML and CSS template URLs. - - This interface can be overridden by the application developer to create custom behavior. - - See Compiler - - - -.l-main-section - h2 Annotations - .l-sub-section - h3.annotation Injectable - pre.prettyprint - code. - @Injectable() - - -.l-main-section - h2 Members - .l-sub-section - h3#constructor constructor - - - pre.prettyprint - code. - constructor(value: string) - - :markdown - - - - - .l-sub-section - h3#value value - - - :markdown - Returns the base URL of the currently running application. - - - - - - - diff --git a/public/docs/js/latest/api/core/AppViewManager-interface.jade b/public/docs/js/latest/api/core/AppViewManager-interface.jade deleted file mode 100644 index 9a1d199fb7..0000000000 --- a/public/docs/js/latest/api/core/AppViewManager-interface.jade +++ /dev/null @@ -1,269 +0,0 @@ - -p.location-badge. - exported from angular2/core - defined in angular2/src/core/compiler/view_manager.ts (line 19) - -:markdown - Entry point for creating, moving views in the view hierarchy and destroying views. - This manager contains all recursion and delegates to helper methods - in AppViewManagerUtils and the Renderer, so unit tests get simpler. - - - -.l-main-section - h2 Annotations - .l-sub-section - h3.annotation Injectable - pre.prettyprint - code. - @Injectable() - - -.l-main-section - h2 Members - .l-sub-section - h3#getViewContainer getViewContainer - - - pre.prettyprint - code. - getViewContainer(location: ElementRef) - - :markdown - Returns a ViewContainerRef at the ElementRef location. - - - - - - - - .l-sub-section - h3#getHostElement getHostElement - - - pre.prettyprint - code. - getHostElement(hostViewRef: HostViewRef) - - :markdown - Return the first child element of the host element view. - - - - - - - - .l-sub-section - h3#getNamedElementInComponentView getNamedElementInComponentView - - - pre.prettyprint - code. - getNamedElementInComponentView(hostLocation: ElementRef, variableName: string) - - :markdown - Returns an ElementRef for the element with the given variable name - in the current view. - - - `hostLocation`: ElementRef of any element in the View which defines the scope of - search. - - `variableName`: Name of the variable to locate. - - Returns ElementRef of the found element or null. (Throws if not found.) - - - - - - - - .l-sub-section - h3#getComponent getComponent - - - pre.prettyprint - code. - getComponent(hostLocation: ElementRef) - - :markdown - Returns the component instance for a given element. - - The component is the execution context as seen by an expression at that ElementRef - location. - - - - - - - - .l-sub-section - h3#createRootHostView createRootHostView - - - pre.prettyprint - code. - createRootHostView(hostProtoViewRef: ProtoViewRef, overrideSelector: string, injector: Injector) - - :markdown - Load component view into existing element. - - Use this if a host element is already in the DOM and it is necessary to upgrade - the element into Angular component by attaching a view but reusing the existing element. - - - `hostProtoViewRef`: ProtoViewRef Proto view to use in creating a view for this - component. - - `overrideSelector`: (optional) selector to use in locating the existing element to load - the view into. If not specified use the selector in the component definition of the - `hostProtoView`. - - injector: Injector to use as parent injector for the view. - - See AppViewManager. - - - - ``` - @ng.Component({ - selector: 'child-component' - }) - @ng.View({ - template: 'Child' - }) - class ChildComponent { - - } - - @ng.Component({ - selector: 'my-app' - }) - @ng.View({ - template: ` - Parent () - ` - }) - class MyApp { - viewRef: ng.ViewRef; - - constructor(public appViewManager: ng.AppViewManager, compiler: ng.Compiler) { - compiler.compileInHost(ChildComponent).then((protoView: ng.ProtoViewRef) => { - this.viewRef = appViewManager.createRootHostView(protoView, 'some-component', null); - }) - } - - onDestroy() { - this.appViewManager.destroyRootHostView(this.viewRef); - this.viewRef = null; - } - } - - ng.bootstrap(MyApp); - ``` - - - - - - - - .l-sub-section - h3#destroyRootHostView destroyRootHostView - - - pre.prettyprint - code. - destroyRootHostView(hostViewRef: HostViewRef) - - :markdown - Remove the View created with AppViewManager. - - - - - - - - .l-sub-section - h3#createEmbeddedViewInContainer createEmbeddedViewInContainer - - - pre.prettyprint - code. - createEmbeddedViewInContainer(viewContainerLocation: ElementRef, atIndex: number, templateRef: TemplateRef) - - :markdown - See AppViewManager. - - - - - - - - .l-sub-section - h3#createHostViewInContainer createHostViewInContainer - - - pre.prettyprint - code. - createHostViewInContainer(viewContainerLocation: ElementRef, atIndex: number, protoViewRef: ProtoViewRef, imperativelyCreatedInjector: ResolvedBinding[]) - - :markdown - See AppViewManager. - - - - - - - - .l-sub-section - h3#destroyViewInContainer destroyViewInContainer - - - pre.prettyprint - code. - destroyViewInContainer(viewContainerLocation: ElementRef, atIndex: number) - - :markdown - See AppViewManager. - - - - - - - - .l-sub-section - h3#attachViewInContainer attachViewInContainer - - - pre.prettyprint - code. - attachViewInContainer(viewContainerLocation: ElementRef, atIndex: number, viewRef: ViewRef) - - :markdown - See AppViewManager. - - - - - - - - .l-sub-section - h3#detachViewInContainer detachViewInContainer - - - pre.prettyprint - code. - detachViewInContainer(viewContainerLocation: ElementRef, atIndex: number) - - :markdown - See AppViewManager. - - - - - - diff --git a/public/docs/js/latest/api/core/ApplicationRef-interface.jade b/public/docs/js/latest/api/core/ApplicationRef-interface.jade deleted file mode 100644 index 52368f0f52..0000000000 --- a/public/docs/js/latest/api/core/ApplicationRef-interface.jade +++ /dev/null @@ -1,89 +0,0 @@ - -p.location-badge. - exported from angular2/core - defined in angular2/src/core/application_ref.ts (line 242) - -:markdown - Represents an Angular application. - - Use to retrieve the application Injector or to bootstrap new - components at the root of the application. Can also be used to dispose - of the entire application and all its loaded components. - - -.l-main-section - h2 Members - .l-sub-section - h3#registerBootstrapListener registerBootstrapListener - - - pre.prettyprint - code. - registerBootstrapListener(listener: (ref: ComponentRef) => void) - - :markdown - Register a listener to be called each time a new root component type is bootstrapped. - - - - - - - - .l-sub-section - h3#bootstrap bootstrap - - - pre.prettyprint - code. - bootstrap(componentType: Type, bindings?: Array<Type | Binding | any[]>) - - :markdown - Bootstrap a new component at the root level of the application, optionally with - component specific bindings. - - - - - - - - .l-sub-section - h3#injector injector - - - :markdown - Retrieve the application Injector. - - - - - - - - .l-sub-section - h3#zone zone - - - :markdown - Retrieve the application NgZone. - - - - - - - - .l-sub-section - h3#dispose dispose - - - pre.prettyprint - code. - dispose() - - :markdown - - - - diff --git a/public/docs/js/latest/api/core/AsyncPipe-class.jade b/public/docs/js/latest/api/core/AsyncPipe-class.jade deleted file mode 100644 index 5c28c80a84..0000000000 --- a/public/docs/js/latest/api/core/AsyncPipe-class.jade +++ /dev/null @@ -1,90 +0,0 @@ - -p.location-badge. - exported from angular2/core - defined in angular2/src/core/pipes/async_pipe.ts (line 35) - -:markdown - The `async` pipe subscribes to an Observable or Promise and returns the latest value it has - emitted. - When a new value is emitted, the `async` pipe marks the component to be checked for changes. - - # Example - The example below binds the `time` Observable to the view. Every 500ms, the `time` Observable - updates the view with the current time. - - ``` - import {Observable} from 'angular2/core'; - @Component({ - selector: "task-cmp" - }) - @View({ - template: "Time: {{ time | async }}" - }) - class Task { - time = new Observable(observer => { - setInterval(_ => - observer.next(new Date().getTime()), 500); - }); - } - ``` - - - -.l-main-section - h2 Annotations - .l-sub-section - h3.annotation Pipe - pre.prettyprint - code. - @Pipe({name: 'async', pure: false}) - - - .l-sub-section - h3.annotation Injectable - pre.prettyprint - code. - @Injectable() - - -.l-main-section - h2 Members - .l-sub-section - h3#constructor constructor - - - pre.prettyprint - code. - constructor(_ref: ChangeDetectorRef) - - :markdown - - - - - .l-sub-section - h3#onDestroy onDestroy - - - pre.prettyprint - code. - onDestroy() - - :markdown - - - - - - .l-sub-section - h3#transform transform - - - pre.prettyprint - code. - transform(obj: Observable | Promise<any>, args?: any[]) - - :markdown - - - - diff --git a/public/docs/js/latest/api/core/Attribute-var.jade b/public/docs/js/latest/api/core/Attribute-var.jade deleted file mode 100644 index 39850af2aa..0000000000 --- a/public/docs/js/latest/api/core/Attribute-var.jade +++ /dev/null @@ -1,11 +0,0 @@ - -.l-main-section - p.location-badge. - exported from angular2/core - defined in angular2/src/core/metadata.ts (line 507) - - :markdown - AttributeMetadata factory function. - - - diff --git a/public/docs/js/latest/api/core/AttributeFactory-interface.jade b/public/docs/js/latest/api/core/AttributeFactory-interface.jade deleted file mode 100644 index ba1048c5af..0000000000 --- a/public/docs/js/latest/api/core/AttributeFactory-interface.jade +++ /dev/null @@ -1,52 +0,0 @@ - -p.location-badge. - exported from angular2/core - defined in angular2/src/core/metadata.ts (line 282) - -:markdown - AttributeMetadata factory for creating annotations, decorators or DSL. - - ## Example as TypeScript Decorator - - ``` - import {Attribute, Component, View} from "angular2/angular2"; - - @Component({...}) - @View({...}) - class MyComponent { - constructor(@Attribute('title') title: string) { - ... - } - } - ``` - - ## Example as ES5 DSL - - ``` - var MyComponent = ng - .Component({...}) - .View({...}) - .Class({ - constructor: [new ng.Attribute('title'), function(title) { - ... - }] - }) - ``` - - ## Example as ES5 annotation - - ``` - var MyComponent = function(title) { - ... - }; - - MyComponent.annotations = [ - new ng.Component({...}), - new ng.View({...}) - ] - MyComponent.parameters = [ - [new ng.Attribute('title')] - ] - ``` - - diff --git a/public/docs/js/latest/api/core/AttributeMetadata-class.jade b/public/docs/js/latest/api/core/AttributeMetadata-class.jade deleted file mode 100644 index f331e27b3a..0000000000 --- a/public/docs/js/latest/api/core/AttributeMetadata-class.jade +++ /dev/null @@ -1,83 +0,0 @@ - -p.location-badge. - exported from angular2/core - defined in angular2/src/core/metadata/di.ts (line 9) - -:markdown - Specifies that a constant attribute value should be injected. - - The directive can inject constant string literals of host element attributes. - - ## Example - - Suppose we have an `` element and want to know its `type`. - - ```html - - ``` - - A decorator can inject string literal `text` like so: - - ```javascript - @Directive({ - selector: `input' - }) - class InputDirective { - constructor(@Attribute('type') type) { - // type would be `text` in this example - } - } - ``` - - - -.l-main-section - h2 Annotations -.l-main-section - h2 Members - .l-sub-section - h3#constructor constructor - - - pre.prettyprint - code. - constructor(attributeName: string) - - :markdown - - - - - .l-sub-section - h3#attributeName attributeName - - - :markdown - - - - - - .l-sub-section - h3#token token - - - :markdown - - - - - - .l-sub-section - h3#toString toString - - - pre.prettyprint - code. - toString() - - :markdown - - - - diff --git a/public/docs/js/latest/api/core/Binding-class.jade b/public/docs/js/latest/api/core/Binding-class.jade deleted file mode 100644 index ebfc549c78..0000000000 --- a/public/docs/js/latest/api/core/Binding-class.jade +++ /dev/null @@ -1,252 +0,0 @@ - -p.location-badge. - exported from angular2/core - defined in angular2/src/core/di/binding.ts (line 41) - -:markdown - Describes how_ the Injector should instantiate a given token. - - See bind. - - ## Example - - ```javascript - var injector = Injector.resolveAndCreate([ - new Binding(String, { toValue: 'Hello' }) - ]); - - expect(injector.get(String)).toEqual('Hello'); - ``` - - - -.l-main-section - h2 Annotations -.l-main-section - h2 Members - .l-sub-section - h3#constructor constructor - - - pre.prettyprint - code. - constructor(token: any, {toClass, toValue, toAlias, toFactory, deps, multi}: { - toClass?: Type, - toValue?: any, - toAlias?: any, - toFactory?: Function, - deps?: Object[], - multi?: boolean - }) - - :markdown - - - - - .l-sub-section - h3#token token - - - :markdown - Token used when retrieving this binding. Usually the `Type`. - - - - - - - - .l-sub-section - h3#toClass toClass - - - :markdown - Binds an interface to an implementation / subclass. - - - - Because `toAlias` and `toClass` are often confused, the example contains both use cases for - easy - comparison. - - ```javascript - - class Vehicle {} - - class Car extends Vehicle {} - - var injectorClass = Injector.resolveAndCreate([ - Car, - new Binding(Vehicle, { toClass: Car }) - ]); - var injectorAlias = Injector.resolveAndCreate([ - Car, - new Binding(Vehicle, { toAlias: Car }) - ]); - - expect(injectorClass.get(Vehicle)).not.toBe(injectorClass.get(Car)); - expect(injectorClass.get(Vehicle) instanceof Car).toBe(true); - - expect(injectorAlias.get(Vehicle)).toBe(injectorAlias.get(Car)); - expect(injectorAlias.get(Vehicle) instanceof Car).toBe(true); - ``` - - - - - - - - .l-sub-section - h3#toValue toValue - - - :markdown - Binds a key to a value. - - - - ```javascript - var injector = Injector.resolveAndCreate([ - new Binding(String, { toValue: 'Hello' }) - ]); - - expect(injector.get(String)).toEqual('Hello'); - ``` - - - - - - - - .l-sub-section - h3#toAlias toAlias - - - :markdown - Binds a key to the alias for an existing key. - - An alias means that Injector returns the same instance as if the alias token was used. - This is in contrast to `toClass` where a separate instance of `toClass` is returned. - - - - Because `toAlias` and `toClass` are often confused the example contains both use cases for easy - comparison. - - ```javascript - - class Vehicle {} - - class Car extends Vehicle {} - - var injectorAlias = Injector.resolveAndCreate([ - Car, - new Binding(Vehicle, { toAlias: Car }) - ]); - var injectorClass = Injector.resolveAndCreate([ - Car, - new Binding(Vehicle, { toClass: Car }) - ]); - - expect(injectorAlias.get(Vehicle)).toBe(injectorAlias.get(Car)); - expect(injectorAlias.get(Vehicle) instanceof Car).toBe(true); - - expect(injectorClass.get(Vehicle)).not.toBe(injectorClass.get(Car)); - expect(injectorClass.get(Vehicle) instanceof Car).toBe(true); - ``` - - - - - - - - .l-sub-section - h3#toFactory toFactory - - - :markdown - Binds a key to a function which computes the value. - - - - ```javascript - var injector = Injector.resolveAndCreate([ - new Binding(Number, { toFactory: () => { return 1+2; }}), - new Binding(String, { toFactory: (value) => { return "Value: " + value; }, - dependencies: [Number] }) - ]); - - expect(injector.get(Number)).toEqual(3); - expect(injector.get(String)).toEqual('Value: 3'); - ``` - - - - - - - - .l-sub-section - h3#dependencies dependencies - - - :markdown - Used in conjunction with `toFactory` and specifies a set of dependencies - (as `token`s) which should be injected into the factory function. - - - - ```javascript - var injector = Injector.resolveAndCreate([ - new Binding(Number, { toFactory: () => { return 1+2; }}), - new Binding(String, { toFactory: (value) => { return "Value: " + value; }, - dependencies: [Number] }) - ]); - - expect(injector.get(Number)).toEqual(3); - expect(injector.get(String)).toEqual('Value: 3'); - ``` - - - - - - - - .l-sub-section - h3#multi multi - - - :markdown - Used to create multiple bindings matching the same token. - - - - ```javascript - var injector = Injector.resolveAndCreate([ - new Binding("Strings", { toValue: "String1", multi: true}), - new Binding("Strings", { toValue: "String2", multi: true}) - ]); - - expect(injector.get("Strings")).toEqual(["String1", "String2"]); - ``` - - Multi bindings and regular bindings cannot be mixed. The following - will throw an exception: - - ```javascript - var injector = Injector.resolveAndCreate([ - new Binding("Strings", { toValue: "String1", multi: true}), - new Binding("Strings", { toValue: "String2"}) - ]); - ``` - - - - - - diff --git a/public/docs/js/latest/api/core/BindingBuilder-class.jade b/public/docs/js/latest/api/core/BindingBuilder-class.jade deleted file mode 100644 index 5d8f26c290..0000000000 --- a/public/docs/js/latest/api/core/BindingBuilder-class.jade +++ /dev/null @@ -1,181 +0,0 @@ - -p.location-badge. - exported from angular2/core - defined in angular2/src/core/di/binding.ts (line 305) - -:markdown - Helper class for the bind function. - - -.l-main-section - h2 Members - .l-sub-section - h3#constructor constructor - - - pre.prettyprint - code. - constructor(token: any) - - :markdown - - - - - .l-sub-section - h3#token token - - - :markdown - - - - - - .l-sub-section - h3#toClass toClass - - - pre.prettyprint - code. - toClass(type: Type) - - :markdown - Binds an interface to an implementation / subclass. - - - - Because `toAlias` and `toClass` are often confused, the example contains both use cases for - easy comparison. - - ```javascript - - class Vehicle {} - - class Car extends Vehicle {} - - var injectorClass = Injector.resolveAndCreate([ - Car, - bind(Vehicle).toClass(Car) - ]); - var injectorAlias = Injector.resolveAndCreate([ - Car, - bind(Vehicle).toAlias(Car) - ]); - - expect(injectorClass.get(Vehicle)).not.toBe(injectorClass.get(Car)); - expect(injectorClass.get(Vehicle) instanceof Car).toBe(true); - - expect(injectorAlias.get(Vehicle)).toBe(injectorAlias.get(Car)); - expect(injectorAlias.get(Vehicle) instanceof Car).toBe(true); - ``` - - - - - - - - .l-sub-section - h3#toValue toValue - - - pre.prettyprint - code. - toValue(value: any) - - :markdown - Binds a key to a value. - - - - ```javascript - var injector = Injector.resolveAndCreate([ - bind(String).toValue('Hello') - ]); - - expect(injector.get(String)).toEqual('Hello'); - ``` - - - - - - - - .l-sub-section - h3#toAlias toAlias - - - pre.prettyprint - code. - toAlias(aliasToken: /*Type*/ any) - - :markdown - Binds a key to the alias for an existing key. - - An alias means that we will return the same instance as if the alias token was used. (This is - in contrast to `toClass` where a separate instance of `toClass` will be returned.) - - - - Because `toAlias` and `toClass` are often confused, the example contains both use cases for - easy - comparison. - - ```javascript - - class Vehicle {} - - class Car extends Vehicle {} - - var injectorAlias = Injector.resolveAndCreate([ - Car, - bind(Vehicle).toAlias(Car) - ]); - var injectorClass = Injector.resolveAndCreate([ - Car, - bind(Vehicle).toClass(Car) - ]); - - expect(injectorAlias.get(Vehicle)).toBe(injectorAlias.get(Car)); - expect(injectorAlias.get(Vehicle) instanceof Car).toBe(true); - - expect(injectorClass.get(Vehicle)).not.toBe(injectorClass.get(Car)); - expect(injectorClass.get(Vehicle) instanceof Car).toBe(true); - ``` - - - - - - - - .l-sub-section - h3#toFactory toFactory - - - pre.prettyprint - code. - toFactory(factoryFunction: Function, dependencies?: any[]) - - :markdown - Binds a key to a function which computes the value. - - - - ```javascript - var injector = Injector.resolveAndCreate([ - bind(Number).toFactory(() => { return 1+2; }), - bind(String).toFactory((v) => { return "Value: " + v; }, [Number]) - ]); - - expect(injector.get(Number)).toEqual(3); - expect(injector.get(String)).toEqual('Value: 3'); - ``` - - - - - - diff --git a/public/docs/js/latest/api/core/BindingWithVisibility-class.jade b/public/docs/js/latest/api/core/BindingWithVisibility-class.jade deleted file mode 100644 index 17169d02cc..0000000000 --- a/public/docs/js/latest/api/core/BindingWithVisibility-class.jade +++ /dev/null @@ -1,54 +0,0 @@ - -p.location-badge. - exported from angular2/core - defined in angular2/src/core/di/injector.ts (line 381) - -:markdown -.l-main-section - h2 Members - .l-sub-section - h3#constructor constructor - - - pre.prettyprint - code. - constructor(binding: ResolvedBinding, visibility: Visibility) - - :markdown - - - - - .l-sub-section - h3#binding binding - - - :markdown - - - - - - .l-sub-section - h3#visibility visibility - - - :markdown - - - - - - .l-sub-section - h3#getKeyId getKeyId - - - pre.prettyprint - code. - getKeyId() - - :markdown - - - - diff --git a/public/docs/js/latest/api/core/By-class.jade b/public/docs/js/latest/api/core/By-class.jade deleted file mode 100644 index fd00713f7c..0000000000 --- a/public/docs/js/latest/api/core/By-class.jade +++ /dev/null @@ -1,6 +0,0 @@ - -p.location-badge. - exported from angular2/core - defined in angular2/src/core/debug/debug_element.ts (line 184) - -:markdown diff --git a/public/docs/js/latest/api/core/CORE_DIRECTIVES-const.jade b/public/docs/js/latest/api/core/CORE_DIRECTIVES-const.jade deleted file mode 100644 index b97ef84586..0000000000 --- a/public/docs/js/latest/api/core/CORE_DIRECTIVES-const.jade +++ /dev/null @@ -1,49 +0,0 @@ - -.l-main-section - p.location-badge. - exported from angular2/core - defined in angular2/src/core/directives.ts (line 64) - - :markdown - A collection of the Angular core directives that are likely to be used in each and every Angular - application. - - This collection can be used to quickly enumerate all the built-in directives in the `@View` - annotation. For example, - instead of writing: - - ``` - import {NgClass, NgIf, NgFor, NgSwitch, NgSwitchWhen, NgSwitchDefault} from 'angular2/angular2'; - import {OtherDirective} from 'myDirectives'; - - @Component({ - selector: 'my-component' - }) - @View({ - templateUrl: 'myComponent.html', - directives: [NgClass, NgIf, NgFor, NgSwitch, NgSwitchWhen, NgSwitchDefault, OtherDirective] - }) - export class MyComponent { - ... - } - ``` - one could import all the core directives at once: - - ``` - import {CORE_DIRECTIVES} from 'angular2/angular2'; - import {OtherDirective} from 'myDirectives'; - - @Component({ - selector: 'my-component' - }) - @View({ - templateUrl: 'myComponent.html', - directives: [CORE_DIRECTIVES, OtherDirective] - }) - export class MyComponent { - ... - } - ``` - - - diff --git a/public/docs/js/latest/api/core/ChangeDetectionError-class.jade b/public/docs/js/latest/api/core/ChangeDetectionError-class.jade deleted file mode 100644 index 2b8f969670..0000000000 --- a/public/docs/js/latest/api/core/ChangeDetectionError-class.jade +++ /dev/null @@ -1,38 +0,0 @@ - -p.location-badge. - exported from angular2/core - defined in angular2/src/core/change_detection/exceptions.ts (line 17) - -:markdown - Thrown when an expression evaluation raises an exception. - - This error wraps the original exception, this is done to attach expression location information. - - -.l-main-section - h2 Members - .l-sub-section - h3#constructor constructor - - - pre.prettyprint - code. - constructor(exp: string, originalException: any, originalStack: any, context: any) - - :markdown - - - - - .l-sub-section - h3#location location - - - :markdown - Location of the expression. - - - - - - diff --git a/public/docs/js/latest/api/core/ChangeDetectionStrategy-enum.jade b/public/docs/js/latest/api/core/ChangeDetectionStrategy-enum.jade deleted file mode 100644 index 4a08f94508..0000000000 --- a/public/docs/js/latest/api/core/ChangeDetectionStrategy-enum.jade +++ /dev/null @@ -1,102 +0,0 @@ - -p.location-badge. - exported from angular2/core - defined in angular2/src/core/change_detection/constants.ts (line 8) - -:markdown -.l-main-section - h2 Members - .l-sub-section - h3#CheckOnce CheckOnce - - - :markdown - `CheckedOnce` means that after calling detectChanges the mode of the change detector - will become `Checked`. - - - - - - - - .l-sub-section - h3#Checked Checked - - - :markdown - `Checked` means that the change detector should be skipped until its mode changes to - `CheckOnce`. - - - - - - - - .l-sub-section - h3#CheckAlways CheckAlways - - - :markdown - `CheckAlways` means that after calling detectChanges the mode of the change detector - will remain `CheckAlways`. - - - - - - - - .l-sub-section - h3#Detached Detached - - - :markdown - `Detached` means that the change detector sub tree is not a part of the main tree and - should be skipped. - - - - - - - - .l-sub-section - h3#OnPush OnPush - - - :markdown - `OnPush` means that the change detector's mode will be set to `CheckOnce` during hydration. - - - - - - - - .l-sub-section - h3#Default Default - - - :markdown - `Default` means that the change detector's mode will be set to `CheckAlways` during hydration. - - - - - - - - .l-sub-section - h3#OnPushObserve OnPushObserve - - - :markdown - This is an experimental feature. Works only in Dart. - - - - - - diff --git a/public/docs/js/latest/api/core/ChangeDetector-interface.jade b/public/docs/js/latest/api/core/ChangeDetector-interface.jade deleted file mode 100644 index c5b97a09cc..0000000000 --- a/public/docs/js/latest/api/core/ChangeDetector-interface.jade +++ /dev/null @@ -1,191 +0,0 @@ - -p.location-badge. - exported from angular2/core - defined in angular2/src/core/change_detection/interfaces.ts (line 55) - -:markdown -.l-main-section - h2 Members - .l-sub-section - h3#parent parent - - - :markdown - - - - - - .l-sub-section - h3#mode mode - - - :markdown - - - - - - .l-sub-section - h3#ref ref - - - :markdown - - - - - - .l-sub-section - h3#addChild addChild - - - pre.prettyprint - code. - addChild(cd: ChangeDetector) - - :markdown - - - - - - .l-sub-section - h3#addShadowDomChild addShadowDomChild - - - pre.prettyprint - code. - addShadowDomChild(cd: ChangeDetector) - - :markdown - - - - - - .l-sub-section - h3#removeChild removeChild - - - pre.prettyprint - code. - removeChild(cd: ChangeDetector) - - :markdown - - - - - - .l-sub-section - h3#removeShadowDomChild removeShadowDomChild - - - pre.prettyprint - code. - removeShadowDomChild(cd: ChangeDetector) - - :markdown - - - - - - .l-sub-section - h3#remove remove - - - pre.prettyprint - code. - remove() - - :markdown - - - - - - .l-sub-section - h3#hydrate hydrate - - - pre.prettyprint - code. - hydrate(context: any, locals: Locals, directives: any, pipes: any) - - :markdown - - - - - - .l-sub-section - h3#dehydrate dehydrate - - - pre.prettyprint - code. - dehydrate() - - :markdown - - - - - - .l-sub-section - h3#markPathToRootAsCheckOnce markPathToRootAsCheckOnce - - - pre.prettyprint - code. - markPathToRootAsCheckOnce() - - :markdown - - - - - - .l-sub-section - h3#handleEvent handleEvent - - - pre.prettyprint - code. - handleEvent(eventName: string, elIndex: number, locals: Locals) - - :markdown - - - - - - .l-sub-section - h3#detectChanges detectChanges - - - pre.prettyprint - code. - detectChanges() - - :markdown - - - - - - .l-sub-section - h3#checkNoChanges checkNoChanges - - - pre.prettyprint - code. - checkNoChanges() - - :markdown - - - - diff --git a/public/docs/js/latest/api/core/ChangeDetectorRef-interface.jade b/public/docs/js/latest/api/core/ChangeDetectorRef-interface.jade deleted file mode 100644 index 77bccd512c..0000000000 --- a/public/docs/js/latest/api/core/ChangeDetectorRef-interface.jade +++ /dev/null @@ -1,83 +0,0 @@ - -p.location-badge. - exported from angular2/core - defined in angular2/src/core/change_detection/change_detector_ref.ts (line 2) - -:markdown - Controls change detection. - - ChangeDetectorRef allows requesting checks for detectors that rely on observables. It - also allows detaching and attaching change detector subtrees. - - -.l-main-section - h2 Members - .l-sub-section - h3#markForCheck markForCheck - - - pre.prettyprint - code. - markForCheck() - - :markdown - Request to check all OnPush ancestors. - - - - - - - - .l-sub-section - h3#detach detach - - - pre.prettyprint - code. - detach() - - :markdown - Detaches the change detector from the change detector tree. - - The detached change detector will not be checked until it is reattached. - - - - - - - - .l-sub-section - h3#detectChanges detectChanges - - - pre.prettyprint - code. - detectChanges() - - :markdown - - - - - - .l-sub-section - h3#reattach reattach - - - pre.prettyprint - code. - reattach() - - :markdown - Reattach the change detector to the change detector tree. - - This also requests a check of this change detector. This reattached change detector will be - checked during the next change detection run. - - - - - - diff --git a/public/docs/js/latest/api/core/CheckboxControlValueAccessor-class.jade b/public/docs/js/latest/api/core/CheckboxControlValueAccessor-class.jade deleted file mode 100644 index 722ad4ac9d..0000000000 --- a/public/docs/js/latest/api/core/CheckboxControlValueAccessor-class.jade +++ /dev/null @@ -1,173 +0,0 @@ - -p.location-badge. - exported from angular2/core - defined in angular2/src/core/forms/directives/checkbox_value_accessor.ts (line 9) - -:markdown - The accessor for writing a value and listening to changes on a checkbox input element. - - # Example - ``` - - ``` - - - -.l-main-section - h2 Annotations - .l-sub-section - h3.annotation Directive - pre.prettyprint - code. - @Directive({ - selector: - 'input[type=checkbox][ng-control],input[type=checkbox][ng-form-control],input[type=checkbox][ng-model]', - host: { - '(change)': 'onChange($event.target.checked)', - '(blur)': 'onTouched()', - '[class.ng-untouched]': 'ngClassUntouched', - '[class.ng-touched]': 'ngClassTouched', - '[class.ng-pristine]': 'ngClassPristine', - '[class.ng-dirty]': 'ngClassDirty', - '[class.ng-valid]': 'ngClassValid', - '[class.ng-invalid]': 'ngClassInvalid' - } - }) - - -.l-main-section - h2 Members - .l-sub-section - h3#constructor constructor - - - pre.prettyprint - code. - constructor(cd: NgControl, _renderer: Renderer, _elementRef: ElementRef) - - :markdown - - - - - .l-sub-section - h3#onChange onChange - - - :markdown - - - - - - .l-sub-section - h3#onTouched onTouched - - - :markdown - - - - - - .l-sub-section - h3#writeValue writeValue - - - pre.prettyprint - code. - writeValue(value: any) - - :markdown - - - - - - .l-sub-section - h3#ngClassUntouched ngClassUntouched - - - :markdown - - - - - - .l-sub-section - h3#ngClassTouched ngClassTouched - - - :markdown - - - - - - .l-sub-section - h3#ngClassPristine ngClassPristine - - - :markdown - - - - - - .l-sub-section - h3#ngClassDirty ngClassDirty - - - :markdown - - - - - - .l-sub-section - h3#ngClassValid ngClassValid - - - :markdown - - - - - - .l-sub-section - h3#ngClassInvalid ngClassInvalid - - - :markdown - - - - - - .l-sub-section - h3#registerOnChange registerOnChange - - - pre.prettyprint - code. - registerOnChange(fn: (_: any) => {}) - - :markdown - - - - - - .l-sub-section - h3#registerOnTouched registerOnTouched - - - pre.prettyprint - code. - registerOnTouched(fn: () => {}) - - :markdown - - - - diff --git a/public/docs/js/latest/api/core/Class-function.jade b/public/docs/js/latest/api/core/Class-function.jade deleted file mode 100644 index 4a6be12c2b..0000000000 --- a/public/docs/js/latest/api/core/Class-function.jade +++ /dev/null @@ -1,98 +0,0 @@ - -.l-main-section - h2(class="function export") Class - - - pre.prettyprint - code. - Class(clsDef: ClassDefinition) : Type - - - p.location-badge. - exported from angular2/core - defined in angular2/src/core/util/decorators.ts (line 119) - - :markdown - Provides a way for expressing ES6 classes with parameter annotations in ES5. - - ## Basic Example - - ``` - var Greeter = ng.Class({ - constructor: function(name) { - this.name = name; - }, - - greet: function() { - alert('Hello ' + this.name + '!'); - } - }); - ``` - - is equivalent to ES6: - - ``` - class Greeter { - constructor(name) { - this.name = name; - } - - greet() { - alert('Hello ' + this.name + '!'); - } - } - ``` - - or equivalent to ES5: - - ``` - var Greeter = function (name) { - this.name = name; - } - - Greeter.prototype.greet = function () { - alert('Hello ' + this.name + '!'); - } - ``` - - ## Example with parameter annotations - - ``` - var MyService = ng.Class({ - constructor: [String, [new Query(), QueryList], function(name, queryList) { - ... - }] - }); - ``` - - is equivalent to ES6: - - ``` - class MyService { - constructor(name: string, @Query() queryList: QueryList) { - ... - } - } - ``` - - ## Example with inheritance - - ``` - var Shape = ng.Class({ - constructor: (color) { - this.color = color; - } - }); - - var Square = ng.Class({ - extends: Shape, - constructor: function(color, size) { - Shape.call(this, color); - this.size = size; - } - }); - ``` - - - - diff --git a/public/docs/js/latest/api/core/ClassDefinition-interface.jade b/public/docs/js/latest/api/core/ClassDefinition-interface.jade deleted file mode 100644 index fae48d445c..0000000000 --- a/public/docs/js/latest/api/core/ClassDefinition-interface.jade +++ /dev/null @@ -1,42 +0,0 @@ - -p.location-badge. - exported from angular2/core - defined in angular2/src/core/util/decorators.ts (line 1) - -:markdown - Declares the interface to be used with Class. - - -.l-main-section - h2 Members - .l-sub-section - h3#extends extends? - - - :markdown - Optional argument for specifying the superclass. - - - - - - - - .l-sub-section - h3#constructor constructor - - - :markdown - Required constructor function for a class. - - The function may be optionally wrapped in an `Array`, in which case additional parameter - annotations may be specified. - The number of arguments and the number of parameter annotations must match. - - See Class for example of usage. - - - - - - diff --git a/public/docs/js/latest/api/core/Compiler-interface.jade b/public/docs/js/latest/api/core/Compiler-interface.jade deleted file mode 100644 index 445dc532a4..0000000000 --- a/public/docs/js/latest/api/core/Compiler-interface.jade +++ /dev/null @@ -1,51 +0,0 @@ - -p.location-badge. - exported from angular2/core - defined in angular2/src/core/compiler/compiler.ts (line 71) - -:markdown - ## URL Resolution - - ``` - var appRootUrl: AppRootUrl = ...; - var componentUrlMapper: ComponentUrlMapper = ...; - var urlResolver: UrlResolver = ...; - - var componentType: Type = ...; - var componentAnnotation: ComponentAnnotation = ...; - var viewAnnotation: ViewAnnotation = ...; - - // Resolving a URL - - var url = viewAnnotation.templateUrl; - var componentUrl = componentUrlMapper.getUrl(componentType); - var componentResolvedUrl = urlResolver.resolve(appRootUrl.value, componentUrl); - var templateResolvedUrl = urlResolver.resolve(componetResolvedUrl, url); - ``` - - - -.l-main-section - h2 Annotations - .l-sub-section - h3.annotation Injectable - pre.prettyprint - code. - @Injectable() - - -.l-main-section - h2 Members - .l-sub-section - h3#compileInHost compileInHost - - - pre.prettyprint - code. - compileInHost(componentTypeOrBinding: Type | Binding) - - :markdown - - - - diff --git a/public/docs/js/latest/api/core/Component-var.jade b/public/docs/js/latest/api/core/Component-var.jade deleted file mode 100644 index f5c44fa716..0000000000 --- a/public/docs/js/latest/api/core/Component-var.jade +++ /dev/null @@ -1,11 +0,0 @@ - -.l-main-section - p.location-badge. - exported from angular2/core - defined in angular2/src/core/metadata.ts (line 491) - - :markdown - ComponentMetadata factory function. - - - diff --git a/public/docs/js/latest/api/core/ComponentDecorator-interface.jade b/public/docs/js/latest/api/core/ComponentDecorator-interface.jade deleted file mode 100644 index 87b73e5ac1..0000000000 --- a/public/docs/js/latest/api/core/ComponentDecorator-interface.jade +++ /dev/null @@ -1,37 +0,0 @@ - -p.location-badge. - exported from angular2/core - defined in angular2/src/core/metadata.ts (line 57) - -:markdown - Interface for the ComponentMetadata decorator function. - - See ComponentFactory. - - -.l-main-section - h2 Members - .l-sub-section - h3#View View - - - pre.prettyprint - code. - View(obj: { - templateUrl?: string, - template?: string, - directives?: Array<Type | any | any[]>, - pipes?: Array<Type | any | any[]>, - renderer?: string, - styles?: string[], - styleUrls?: string[], - }) - - :markdown - Chain ViewMetadata annotation. - - - - - - diff --git a/public/docs/js/latest/api/core/ComponentFactory-interface.jade b/public/docs/js/latest/api/core/ComponentFactory-interface.jade deleted file mode 100644 index 33510de65e..0000000000 --- a/public/docs/js/latest/api/core/ComponentFactory-interface.jade +++ /dev/null @@ -1,49 +0,0 @@ - -p.location-badge. - exported from angular2/core - defined in angular2/src/core/metadata.ts (line 148) - -:markdown - ComponentMetadata factory for creating annotations, decorators or DSL. - - ## Example as TypeScript Decorator - - ``` - import {Component, View} from "angular2/angular2"; - - @Component({...}) - @View({...}) - class MyComponent { - constructor() { - ... - } - } - ``` - - ## Example as ES5 DSL - - ``` - var MyComponent = ng - .Component({...}) - .View({...}) - .Class({ - constructor: function() { - ... - } - }) - ``` - - ## Example as ES5 annotation - - ``` - var MyComponent = function() { - ... - }; - - MyComponent.annotations = [ - new ng.Component({...}), - new ng.View({...}) - ] - ``` - - diff --git a/public/docs/js/latest/api/core/ComponentMetadata-class.jade b/public/docs/js/latest/api/core/ComponentMetadata-class.jade deleted file mode 100644 index 894149edbb..0000000000 --- a/public/docs/js/latest/api/core/ComponentMetadata-class.jade +++ /dev/null @@ -1,190 +0,0 @@ - -p.location-badge. - exported from angular2/core - defined in angular2/src/core/metadata/directives.ts (line 745) - -:markdown - Declare reusable UI building blocks for an application. - - Each Angular component requires a single `@Component` and at least one `@View` annotation. The - `@Component` - annotation specifies when a component is instantiated, and which properties and hostListeners it - binds to. - - When a component is instantiated, Angular - - creates a shadow DOM for the component. - - loads the selected template into the shadow DOM. - - creates all the injectable objects configured with `bindings` and `viewBindings`. - - All template expressions and statements are then evaluated against the component instance. - - For details on the `@View` annotation, see ViewMetadata. - - ## Lifecycle hooks - - When the component class implements some undefined the callbacks are - called by the change detection at defined points in time during the life of the component. - - ## Example - - ``` - @Component({ - selector: 'greet' - }) - @View({ - template: 'Hello {{name}}!' - }) - class Greet { - name: string; - - constructor() { - this.name = 'World'; - } - } - ``` - - - -.l-main-section - h2 Annotations -.l-main-section - h2 Members - .l-sub-section - h3#constructor constructor - - - pre.prettyprint - code. - constructor({selector, properties, events, host, dynamicLoadable, compiledHostTemplate, exportAs, - moduleId, bindings, viewBindings, changeDetection = ChangeDetectionStrategy.Default, - compileChildren = true}?: { - selector?: string, - properties?: string[], - events?: string[], - host?: StringMap<string, string>, - dynamicLoadable?: boolean, - compiledHostTemplate?: any, - bindings?: any[], - exportAs?: string, - moduleId?: string, - compileChildren?: boolean, - viewBindings?: any[], - changeDetection?: ChangeDetectionStrategy, - }) - - :markdown - - - - - .l-sub-section - h3#dynamicLoadable dynamicLoadable - - - :markdown - Declare that this component can be programatically loaded. - Every component that is used in bootstrap, routing, ... has to be - annotated with this. - - - - ``` - @Component({ - selector: 'root', - dynamicLoadable: true - }) - @View({ - template: 'hello world!' - }) - class RootComponent { - } - ``` - - - - - - - - .l-sub-section - h3#compiledHostTemplate compiledHostTemplate - - - :markdown - Used by build tools to store the compiled template. - Not intended to be used by a user. - - - - - - - - .l-sub-section - h3#changeDetection changeDetection - - - :markdown - Defines the used change detection strategy. - - When a component is instantiated, Angular creates a change detector, which is responsible for - propagating the component's bindings. - - The `changeDetection` property defines, whether the change detection will be checked every time - or only when the component tells it to do so. - - - - - - - - .l-sub-section - h3#viewBindings viewBindings - - - :markdown - Defines the set of injectable objects that are visible to its view DOM children. - - ## Simple Example - - Here is an example of a class that can be injected: - - ``` - class Greeter { - greet(name:string) { - return 'Hello ' + name + '!'; - } - } - - @Directive({ - selector: 'needs-greeter' - }) - class NeedsGreeter { - greeter:Greeter; - - constructor(greeter:Greeter) { - this.greeter = greeter; - } - } - - @Component({ - selector: 'greet', - viewBindings: [ - Greeter - ] - }) - @View({ - template: ``, - directives: [NeedsGreeter] - }) - class HelloWorld { - } - - ``` - - - - - - diff --git a/public/docs/js/latest/api/core/ComponentRef-interface.jade b/public/docs/js/latest/api/core/ComponentRef-interface.jade deleted file mode 100644 index 6abe4ad4d1..0000000000 --- a/public/docs/js/latest/api/core/ComponentRef-interface.jade +++ /dev/null @@ -1,108 +0,0 @@ - -p.location-badge. - exported from angular2/core - defined in angular2/src/core/compiler/dynamic_component_loader.ts (line 11) - -:markdown - Angular's reference to a component instance. - - `ComponentRef` represents a component instance lifecycle and meta information. - - -.l-main-section - h2 Members - .l-sub-section - h3#location location - - - :markdown - Location of the component host element. - - - - - - - - .l-sub-section - h3#instance instance - - - :markdown - Instance of component. - - - - - - - - .l-sub-section - h3#componentType componentType - - - :markdown - - - - - - .l-sub-section - h3#injector injector - - - :markdown - - - - - - .l-sub-section - h3#hostView hostView - - - :markdown - Returns the host ViewRef. - - - - - - - - .l-sub-section - h3#hostComponentType hostComponentType - - - :markdown - - - - - - .l-sub-section - h3#hostComponent hostComponent - - - :markdown - - - - - - .l-sub-section - h3#dispose dispose - - - pre.prettyprint - code. - dispose() - - :markdown - Dispose of the component instance. - - - - - - diff --git a/public/docs/js/latest/api/core/ComponentUrlMapper-class.jade b/public/docs/js/latest/api/core/ComponentUrlMapper-class.jade deleted file mode 100644 index 071e5db11c..0000000000 --- a/public/docs/js/latest/api/core/ComponentUrlMapper-class.jade +++ /dev/null @@ -1,44 +0,0 @@ - -p.location-badge. - exported from angular2/core - defined in angular2/src/core/compiler/component_url_mapper.ts (line 4) - -:markdown - Resolve a `Type` from a ComponentMetadata into a URL. - - This interface can be overridden by the application developer to create custom behavior. - - See Compiler - - - -.l-main-section - h2 Annotations - .l-sub-section - h3.annotation Injectable - pre.prettyprint - code. - @Injectable() - - -.l-main-section - h2 Members - .l-sub-section - h3#getUrl getUrl - - - pre.prettyprint - code. - getUrl(component: Type) - - :markdown - Returns the base URL to the component source file. - The returned URL could be: - - an absolute URL, - - a path relative to the application - - - - - - diff --git a/public/docs/js/latest/api/core/Control-class.jade b/public/docs/js/latest/api/core/Control-class.jade deleted file mode 100644 index 1b56f72c8c..0000000000 --- a/public/docs/js/latest/api/core/Control-class.jade +++ /dev/null @@ -1,55 +0,0 @@ - -p.location-badge. - exported from angular2/core - defined in angular2/src/core/forms/model.ts (line 132) - -:markdown - Defines a part of a form that cannot be divided into other controls. - - `Control` is one of the three fundamental building blocks used to define forms in Angular, along - with ControlGroup and ControlArray. - - -.l-main-section - h2 Members - .l-sub-section - h3#constructor constructor - - - pre.prettyprint - code. - constructor(value?: any, validator?: Function) - - :markdown - - - - - .l-sub-section - h3#updateValue updateValue - - - pre.prettyprint - code. - updateValue(value: any, {onlySelf, emitEvent, emitModelToViewChange}?: - {onlySelf?: boolean, emitEvent?: boolean, emitModelToViewChange?: boolean}) - - :markdown - - - - - - .l-sub-section - h3#registerOnChange registerOnChange - - - pre.prettyprint - code. - registerOnChange(fn: Function) - - :markdown - - - - diff --git a/public/docs/js/latest/api/core/ControlArray-class.jade b/public/docs/js/latest/api/core/ControlArray-class.jade deleted file mode 100644 index 4954526ca9..0000000000 --- a/public/docs/js/latest/api/core/ControlArray-class.jade +++ /dev/null @@ -1,107 +0,0 @@ - -p.location-badge. - exported from angular2/core - defined in angular2/src/core/forms/model.ts (line 238) - -:markdown - Defines a part of a form, of variable length, that can contain other controls. - - A `ControlArray` aggregates the values and errors of each Control in the group. Thus, if - one of the controls in a group is invalid, the entire group is invalid. Similarly, if a control - changes its value, the entire group changes as well. - - `ControlArray` is one of the three fundamental building blocks used to define forms in Angular, - along with Control and ControlGroup. ControlGroup can also contain - other controls, but is of fixed length. - - -.l-main-section - h2 Members - .l-sub-section - h3#constructor constructor - - - pre.prettyprint - code. - constructor(controls: AbstractControl[], validator?: Function) - - :markdown - - - - - .l-sub-section - h3#controls controls - - - :markdown - - - - - - .l-sub-section - h3#at at - - - pre.prettyprint - code. - at(index: number) - - :markdown - - - - - - .l-sub-section - h3#push push - - - pre.prettyprint - code. - push(control: AbstractControl) - - :markdown - - - - - - .l-sub-section - h3#insert insert - - - pre.prettyprint - code. - insert(index: number, control: AbstractControl) - - :markdown - - - - - - .l-sub-section - h3#removeAt removeAt - - - pre.prettyprint - code. - removeAt(index: number) - - :markdown - - - - - - .l-sub-section - h3#length length - - - :markdown - - - - diff --git a/public/docs/js/latest/api/core/ControlContainer-class.jade b/public/docs/js/latest/api/core/ControlContainer-class.jade deleted file mode 100644 index b48e222529..0000000000 --- a/public/docs/js/latest/api/core/ControlContainer-class.jade +++ /dev/null @@ -1,42 +0,0 @@ - -p.location-badge. - exported from angular2/core - defined in angular2/src/core/forms/directives/control_container.ts (line 2) - -:markdown - A directive that contains multiple NgControl. - - Only used by the forms module. - - -.l-main-section - h2 Members - .l-sub-section - h3#name name - - - :markdown - - - - - - .l-sub-section - h3#formDirective formDirective - - - :markdown - - - - - - .l-sub-section - h3#path path - - - :markdown - - - - diff --git a/public/docs/js/latest/api/core/ControlGroup-class.jade b/public/docs/js/latest/api/core/ControlGroup-class.jade deleted file mode 100644 index 2e6843baca..0000000000 --- a/public/docs/js/latest/api/core/ControlGroup-class.jade +++ /dev/null @@ -1,111 +0,0 @@ - -p.location-badge. - exported from angular2/core - defined in angular2/src/core/forms/model.ts (line 161) - -:markdown - Defines a part of a form, of fixed length, that can contain other controls. - - A `ControlGroup` aggregates the values and errors of each Control in the group. Thus, if - one of the controls in a group is invalid, the entire group is invalid. Similarly, if a control - changes its value, the entire group changes as well. - - `ControlGroup` is one of the three fundamental building blocks used to define forms in Angular, - along with Control and ControlArray. ControlArray can also contain other - controls, but is of variable length. - - -.l-main-section - h2 Members - .l-sub-section - h3#constructor constructor - - - pre.prettyprint - code. - constructor(controls: StringMap<string, AbstractControl>, optionals?: StringMap<string, boolean>, validator?: Function) - - :markdown - - - - - .l-sub-section - h3#controls controls - - - :markdown - - - - - - .l-sub-section - h3#addControl addControl - - - pre.prettyprint - code. - addControl(name: string, control: AbstractControl) - - :markdown - - - - - - .l-sub-section - h3#removeControl removeControl - - - pre.prettyprint - code. - removeControl(name: string) - - :markdown - - - - - - .l-sub-section - h3#include include - - - pre.prettyprint - code. - include(controlName: string) - - :markdown - - - - - - .l-sub-section - h3#exclude exclude - - - pre.prettyprint - code. - exclude(controlName: string) - - :markdown - - - - - - .l-sub-section - h3#contains contains - - - pre.prettyprint - code. - contains(controlName: string) - - :markdown - - - - diff --git a/public/docs/js/latest/api/core/ControlValueAccessor-interface.jade b/public/docs/js/latest/api/core/ControlValueAccessor-interface.jade deleted file mode 100644 index 541c7ca0c3..0000000000 --- a/public/docs/js/latest/api/core/ControlValueAccessor-interface.jade +++ /dev/null @@ -1,54 +0,0 @@ - -p.location-badge. - exported from angular2/core - defined in angular2/src/core/forms/directives/control_value_accessor.ts (line 1) - -:markdown - A bridge between a control and a native element. - - Please see DefaultValueAccessor for more information. - - -.l-main-section - h2 Members - .l-sub-section - h3#writeValue writeValue - - - pre.prettyprint - code. - writeValue(obj: any) - - :markdown - - - - - - .l-sub-section - h3#registerOnChange registerOnChange - - - pre.prettyprint - code. - registerOnChange(fn: any) - - :markdown - - - - - - .l-sub-section - h3#registerOnTouched registerOnTouched - - - pre.prettyprint - code. - registerOnTouched(fn: any) - - :markdown - - - - diff --git a/public/docs/js/latest/api/core/CurrencyPipe-class.jade b/public/docs/js/latest/api/core/CurrencyPipe-class.jade deleted file mode 100644 index 8bf724521f..0000000000 --- a/public/docs/js/latest/api/core/CurrencyPipe-class.jade +++ /dev/null @@ -1,54 +0,0 @@ - -p.location-badge. - exported from angular2/core - defined in angular2/src/core/pipes/number_pipe.ts (line 116) - -:markdown - WARNING: this pipe uses the Internationalization API. - Therefore it is only reliable in Chrome and Opera browsers. - - Formats a number as local currency. - - # Usage - - expression | currency[:currencyCode[:symbolDisplay[:digitInfo]]] - - where `currencyCode` is the ISO 4217 currency code, such as "USD" for the US dollar and - "EUR" for the euro. `symbolDisplay` is a boolean indicating whether to use the currency - symbol (e.g. $) or the currency code (e.g. USD) in the output. The default for this value - is `false`. - For more information about `digitInfo` see DecimalPipe - - - -.l-main-section - h2 Annotations - .l-sub-section - h3.annotation Pipe - pre.prettyprint - code. - @Pipe({name: 'currency'}) - - - .l-sub-section - h3.annotation Injectable - pre.prettyprint - code. - @Injectable() - - -.l-main-section - h2 Members - .l-sub-section - h3#transform transform - - - pre.prettyprint - code. - transform(value: any, args: any[]) - - :markdown - - - - diff --git a/public/docs/js/latest/api/core/CyclicDependencyError-class.jade b/public/docs/js/latest/api/core/CyclicDependencyError-class.jade deleted file mode 100644 index 7125f1cfed..0000000000 --- a/public/docs/js/latest/api/core/CyclicDependencyError-class.jade +++ /dev/null @@ -1,36 +0,0 @@ - -p.location-badge. - exported from angular2/core - defined in angular2/src/core/di/exceptions.ts (line 68) - -:markdown - Thrown when dependencies form a cycle. - - ## Example: - - ```javascript - class A { - constructor(b:B) {} - } - class B { - constructor(a:A) {} - } - ``` - - Retrieving `A` or `B` throws a `CyclicDependencyError` as the graph above cannot be constructed. - - -.l-main-section - h2 Members - .l-sub-section - h3#constructor constructor - - - pre.prettyprint - code. - constructor(injector: Injector, key: Key) - - :markdown - - - diff --git a/public/docs/js/latest/api/core/DEFAULT_PIPES-const.jade b/public/docs/js/latest/api/core/DEFAULT_PIPES-const.jade deleted file mode 100644 index d42b660e4e..0000000000 --- a/public/docs/js/latest/api/core/DEFAULT_PIPES-const.jade +++ /dev/null @@ -1,8 +0,0 @@ - -.l-main-section - p.location-badge. - exported from angular2/core - defined in angular2/src/core/pipes/default_pipes.ts (line 26) - - :markdown - diff --git a/public/docs/js/latest/api/core/DEFAULT_PIPES_TOKEN-const.jade b/public/docs/js/latest/api/core/DEFAULT_PIPES_TOKEN-const.jade deleted file mode 100644 index d1c1f61dfa..0000000000 --- a/public/docs/js/latest/api/core/DEFAULT_PIPES_TOKEN-const.jade +++ /dev/null @@ -1,8 +0,0 @@ - -.l-main-section - p.location-badge. - exported from angular2/core - defined in angular2/src/core/pipes/default_pipes.ts (line 24) - - :markdown - diff --git a/public/docs/js/latest/api/core/DOCUMENT-const.jade b/public/docs/js/latest/api/core/DOCUMENT-const.jade deleted file mode 100644 index 8a5e75806b..0000000000 --- a/public/docs/js/latest/api/core/DOCUMENT-const.jade +++ /dev/null @@ -1,8 +0,0 @@ - -.l-main-section - p.location-badge. - exported from angular2/core - defined in angular2/src/core/render/dom/dom_tokens.ts (line 4) - - :markdown - diff --git a/public/docs/js/latest/api/core/DatePipe-class.jade b/public/docs/js/latest/api/core/DatePipe-class.jade deleted file mode 100644 index 9fa9df2a51..0000000000 --- a/public/docs/js/latest/api/core/DatePipe-class.jade +++ /dev/null @@ -1,109 +0,0 @@ - -p.location-badge. - exported from angular2/core - defined in angular2/src/core/pipes/date_pipe.ts (line 21) - -:markdown - WARNING: this pipe uses the Internationalization API. - Therefore it is only reliable in Chrome and Opera browsers. - - Formats a date value to a string based on the requested format. - - # Usage - - expression | date[:format] - - where `expression` is a date object or a number (milliseconds since UTC epoch) and - `format` indicates which date/time components to include: - - | Component | Symbol | Short Form | Long Form | Numeric | 2-digit | - |-----------|:------:|--------------|-------------------|-----------|-----------| - | era | G | G (AD) | GGGG (Anno Domini)| - | - | - | year | y | - | - | y (2015) | yy (15) | - | month | M | MMM (Sep) | MMMM (September) | M (9) | MM (09) | - | day | d | - | - | d (3) | dd (03) | - | weekday | E | EEE (Sun) | EEEE (Sunday) | - | - | - | hour | j | - | - | j (13) | jj (13) | - | hour12 | h | - | - | h (1 PM) | hh (01 PM)| - | hour24 | H | - | - | H (13) | HH (13) | - | minute | m | - | - | m (5) | mm (05) | - | second | s | - | - | s (9) | ss (09) | - | timezone | z | - | z (Pacific Standard Time)| - | - | - | timezone | Z | Z (GMT-8:00) | - | - | - | - - In javascript, only the components specified will be respected (not the ordering, - punctuations, ...) and details of the the formatting will be dependent on the locale. - On the other hand in Dart version, you can also include quoted text as well as some extra - date/time components such as quarter. For more information see: - https://api.dartlang.org/apidocs/channels/stable/dartdoc-viewer/intl/intl.DateFormat. - - `format` can also be one of the following predefined formats: - - - `'medium'`: equivalent to `'yMMMdjms'` (e.g. Sep 3, 2010, 12:05:08 PM for en-US) - - `'short'`: equivalent to `'yMdjm'` (e.g. 9/3/2010, 12:05 PM for en-US) - - `'fullDate'`: equivalent to `'yMMMMEEEEd'` (e.g. Friday, September 3, 2010 for en-US) - - `'longDate'`: equivalent to `'yMMMMd'` (e.g. September 3, 2010) - - `'mediumDate'`: equivalent to `'yMMMd'` (e.g. Sep 3, 2010 for en-US) - - `'shortDate'`: equivalent to `'yMd'` (e.g. 9/3/2010 for en-US) - - `'mediumTime'`: equivalent to `'jms'` (e.g. 12:05:08 PM for en-US) - - `'shortTime'`: equivalent to `'jm'` (e.g. 12:05 PM for en-US) - - Timezone of the formatted text will be the local system timezone of the end-users machine. - - # Examples - - Assuming `dateObj` is (year: 2015, month: 6, day: 15, hour: 21, minute: 43, second: 11) - in the _local_ time and locale is 'en-US': - - {{ dateObj | date }} // output is 'Jun 15, 2015' - {{ dateObj | date:'medium' }} // output is 'Jun 15, 2015, 9:43:11 PM' - {{ dateObj | date:'shortTime' }} // output is '9:43 PM' - {{ dateObj | date:'mmss' }} // output is '43:11' - - - -.l-main-section - h2 Annotations - .l-sub-section - h3.annotation Pipe - pre.prettyprint - code. - @Pipe({name: 'date'}) - - - .l-sub-section - h3.annotation Injectable - pre.prettyprint - code. - @Injectable() - - -.l-main-section - h2 Members - .l-sub-section - h3#transform transform - - - pre.prettyprint - code. - transform(value: any, args: any[]) - - :markdown - - - - - - .l-sub-section - h3#supports supports - - - pre.prettyprint - code. - supports(obj: any) - - :markdown - - - - diff --git a/public/docs/js/latest/api/core/DebugElement-interface.jade b/public/docs/js/latest/api/core/DebugElement-interface.jade deleted file mode 100644 index 40fedc0b42..0000000000 --- a/public/docs/js/latest/api/core/DebugElement-interface.jade +++ /dev/null @@ -1,171 +0,0 @@ - -p.location-badge. - exported from angular2/core - defined in angular2/src/core/debug/debug_element.ts (line 9) - -:markdown - A DebugElement contains information from the Angular compiler about an - element and provides access to the corresponding ElementInjector and - underlying dom Element, as well as a way to query for children. - - -.l-main-section - h2 Members - .l-sub-section - h3#componentInstance componentInstance - - - :markdown - - - - - - .l-sub-section - h3#nativeElement nativeElement - - - :markdown - - - - - - .l-sub-section - h3#elementRef elementRef - - - :markdown - - - - - - .l-sub-section - h3#getDirectiveInstance getDirectiveInstance - - - pre.prettyprint - code. - getDirectiveInstance(directiveIndex: number) - - :markdown - - - - - - .l-sub-section - h3#children children - - - :markdown - Get child DebugElements from within the Light DOM. - - - - - - - .l-sub-section - h3#componentViewChildren componentViewChildren - - - :markdown - Get the root DebugElement children of a component. Returns an empty - list if the current DebugElement is not a component root. - - - - - - - .l-sub-section - h3#triggerEventHandler triggerEventHandler - - - pre.prettyprint - code. - triggerEventHandler(eventName: string, eventObj: Event) - - :markdown - - - - - - .l-sub-section - h3#hasDirective hasDirective - - - pre.prettyprint - code. - hasDirective(type: Type) - - :markdown - - - - - - .l-sub-section - h3#inject inject - - - pre.prettyprint - code. - inject(type: Type) - - :markdown - - - - - - .l-sub-section - h3#getLocal getLocal - - - pre.prettyprint - code. - getLocal(name: string) - - :markdown - - - - - - .l-sub-section - h3#query query - - - pre.prettyprint - code. - query(predicate: Predicate<DebugElement>, scope?: Function) - - :markdown - Return the first descendant TestElement matching the given predicate - and scope. - - - - - - - .l-sub-section - h3#queryAll queryAll - - - pre.prettyprint - code. - queryAll(predicate: Predicate<DebugElement>, scope?: Function) - - :markdown - Return descendant TestElememts matching the given predicate - and scope. - - - - - diff --git a/public/docs/js/latest/api/core/DecimalPipe-class.jade b/public/docs/js/latest/api/core/DecimalPipe-class.jade deleted file mode 100644 index 497a179013..0000000000 --- a/public/docs/js/latest/api/core/DecimalPipe-class.jade +++ /dev/null @@ -1,66 +0,0 @@ - -p.location-badge. - exported from angular2/core - defined in angular2/src/core/pipes/number_pipe.ts (line 56) - -:markdown - WARNING: this pipe uses the Internationalization API. - Therefore it is only reliable in Chrome and Opera browsers. - - Formats a number as local text. i.e. group sizing and seperator and other locale-specific - configurations are based on the active locale. - - # Usage - - expression | number[:digitInfo] - - where `expression` is a number and `digitInfo` has the following format: - - {minIntegerDigits}.{minFractionDigits}-{maxFractionDigits} - - - minIntegerDigits is the minimum number of integer digits to use. Defaults to 1. - - minFractionDigits is the minimum number of digits after fraction. Defaults to 0. - - maxFractionDigits is the maximum number of digits after fraction. Defaults to 3. - - For more information on the acceptable range for each of these numbers and other - details see your native internationalization library. - - # Examples - - {{ 123 | number }} // output is 123 - {{ 123.1 | number: '.2-3' }} // output is 123.10 - {{ 1 | number: '2.2' }} // output is 01.00 - - - -.l-main-section - h2 Annotations - .l-sub-section - h3.annotation Pipe - pre.prettyprint - code. - @Pipe({name: 'number'}) - - - .l-sub-section - h3.annotation Injectable - pre.prettyprint - code. - @Injectable() - - -.l-main-section - h2 Members - .l-sub-section - h3#transform transform - - - pre.prettyprint - code. - transform(value: any, args: any[]) - - :markdown - - - - diff --git a/public/docs/js/latest/api/core/DefaultValidators-class.jade b/public/docs/js/latest/api/core/DefaultValidators-class.jade deleted file mode 100644 index 5353dd1194..0000000000 --- a/public/docs/js/latest/api/core/DefaultValidators-class.jade +++ /dev/null @@ -1,19 +0,0 @@ - -p.location-badge. - exported from angular2/core - defined in angular2/src/core/forms/directives/validators.ts (line 7) - -:markdown - -.l-main-section - h2 Annotations - .l-sub-section - h3.annotation Directive - pre.prettyprint - code. - @Directive({ - selector: '[required][ng-control],[required][ng-form-control],[required][ng-model]', - bindings: [DEFAULT_VALIDATORS] - }) - - diff --git a/public/docs/js/latest/api/core/DefaultValueAccessor-class.jade b/public/docs/js/latest/api/core/DefaultValueAccessor-class.jade deleted file mode 100644 index d56e6f52cc..0000000000 --- a/public/docs/js/latest/api/core/DefaultValueAccessor-class.jade +++ /dev/null @@ -1,175 +0,0 @@ - -p.location-badge. - exported from angular2/core - defined in angular2/src/core/forms/directives/default_value_accessor.ts (line 8) - -:markdown - The default accessor for writing a value and listening to changes that is used by the - NgModel, NgFormControl, and NgControlName directives. - - # Example - ``` - - ``` - - - -.l-main-section - h2 Annotations - .l-sub-section - h3.annotation Directive - pre.prettyprint - code. - @Directive({ - selector: - 'input:not([type=checkbox])[ng-control],textarea[ng-control],input:not([type=checkbox])[ng-form-control],textarea[ng-form-control],input:not([type=checkbox])[ng-model],textarea[ng-model]', - host: { - '(change)': 'onChange($event.target.value)', - '(input)': 'onChange($event.target.value)', - '(blur)': 'onTouched()', - '[class.ng-untouched]': 'ngClassUntouched', - '[class.ng-touched]': 'ngClassTouched', - '[class.ng-pristine]': 'ngClassPristine', - '[class.ng-dirty]': 'ngClassDirty', - '[class.ng-valid]': 'ngClassValid', - '[class.ng-invalid]': 'ngClassInvalid' - } - }) - - -.l-main-section - h2 Members - .l-sub-section - h3#constructor constructor - - - pre.prettyprint - code. - constructor(cd: NgControl, _renderer: Renderer, _elementRef: ElementRef) - - :markdown - - - - - .l-sub-section - h3#onChange onChange - - - :markdown - - - - - - .l-sub-section - h3#onTouched onTouched - - - :markdown - - - - - - .l-sub-section - h3#writeValue writeValue - - - pre.prettyprint - code. - writeValue(value: any) - - :markdown - - - - - - .l-sub-section - h3#ngClassUntouched ngClassUntouched - - - :markdown - - - - - - .l-sub-section - h3#ngClassTouched ngClassTouched - - - :markdown - - - - - - .l-sub-section - h3#ngClassPristine ngClassPristine - - - :markdown - - - - - - .l-sub-section - h3#ngClassDirty ngClassDirty - - - :markdown - - - - - - .l-sub-section - h3#ngClassValid ngClassValid - - - :markdown - - - - - - .l-sub-section - h3#ngClassInvalid ngClassInvalid - - - :markdown - - - - - - .l-sub-section - h3#registerOnChange registerOnChange - - - pre.prettyprint - code. - registerOnChange(fn: (_: any) => void) - - :markdown - - - - - - .l-sub-section - h3#registerOnTouched registerOnTouched - - - pre.prettyprint - code. - registerOnTouched(fn: () => void) - - :markdown - - - - diff --git a/public/docs/js/latest/api/core/Dependency-class.jade b/public/docs/js/latest/api/core/Dependency-class.jade deleted file mode 100644 index 29d87f0d40..0000000000 --- a/public/docs/js/latest/api/core/Dependency-class.jade +++ /dev/null @@ -1,70 +0,0 @@ - -p.location-badge. - exported from angular2/core - defined in angular2/src/core/di/binding.ts (line 29) - -:markdown -.l-main-section - h2 Members - .l-sub-section - h3#constructor constructor - - - pre.prettyprint - code. - constructor(key: Key, optional: boolean, lowerBoundVisibility: any, upperBoundVisibility: any, properties: any[]) - - :markdown - - - - - .l-sub-section - h3#key key - - - :markdown - - - - - - .l-sub-section - h3#optional optional - - - :markdown - - - - - - .l-sub-section - h3#lowerBoundVisibility lowerBoundVisibility - - - :markdown - - - - - - .l-sub-section - h3#upperBoundVisibility upperBoundVisibility - - - :markdown - - - - - - .l-sub-section - h3#properties properties - - - :markdown - - - - diff --git a/public/docs/js/latest/api/core/DependencyMetadata-class.jade b/public/docs/js/latest/api/core/DependencyMetadata-class.jade deleted file mode 100644 index bee6f25fc3..0000000000 --- a/public/docs/js/latest/api/core/DependencyMetadata-class.jade +++ /dev/null @@ -1,46 +0,0 @@ - -p.location-badge. - exported from angular2/core - defined in angular2/src/core/di/metadata.ts (line 33) - -:markdown - `DependencyMetadata` is used by the framework to extend DI. - - Only metadata implementing `DependencyMetadata` are added to the list of dependency - properties. - - For example: - - ``` - class Exclude extends DependencyMetadata {} - class NotDependencyProperty {} - - class AComponent { - constructor(@Exclude @NotDependencyProperty aService:AService) {} - } - ``` - - will create the following dependency: - - ``` - new Dependency(Key.get(AService), [new Exclude()]) - ``` - - The framework can use `new Exclude()` to handle the `aService` dependency - in a specific way. - - - -.l-main-section - h2 Annotations -.l-main-section - h2 Members - .l-sub-section - h3#token token - - - :markdown - - - - diff --git a/public/docs/js/latest/api/core/DependencyProvider-interface.jade b/public/docs/js/latest/api/core/DependencyProvider-interface.jade deleted file mode 100644 index f5b9af2a34..0000000000 --- a/public/docs/js/latest/api/core/DependencyProvider-interface.jade +++ /dev/null @@ -1,24 +0,0 @@ - -p.location-badge. - exported from angular2/core - defined in angular2/src/core/di/injector.ts (line 387) - -:markdown - Used to provide dependencies that cannot be easily expressed as bindings. - - -.l-main-section - h2 Members - .l-sub-section - h3#getDependency getDependency - - - pre.prettyprint - code. - getDependency(injector: Injector, binding: ResolvedBinding, dependency: Dependency) - - :markdown - - - - diff --git a/public/docs/js/latest/api/core/Directive-var.jade b/public/docs/js/latest/api/core/Directive-var.jade deleted file mode 100644 index ef505d7779..0000000000 --- a/public/docs/js/latest/api/core/Directive-var.jade +++ /dev/null @@ -1,11 +0,0 @@ - -.l-main-section - p.location-badge. - exported from angular2/core - defined in angular2/src/core/metadata.ts (line 496) - - :markdown - DirectiveMetadata factory function. - - - diff --git a/public/docs/js/latest/api/core/DirectiveDecorator-interface.jade b/public/docs/js/latest/api/core/DirectiveDecorator-interface.jade deleted file mode 100644 index 4d9a3a5a43..0000000000 --- a/public/docs/js/latest/api/core/DirectiveDecorator-interface.jade +++ /dev/null @@ -1,11 +0,0 @@ - -p.location-badge. - exported from angular2/core - defined in angular2/src/core/metadata.ts (line 50) - -:markdown - Interface for the DirectiveMetadata decorator function. - - See DirectiveFactory. - - diff --git a/public/docs/js/latest/api/core/DirectiveFactory-interface.jade b/public/docs/js/latest/api/core/DirectiveFactory-interface.jade deleted file mode 100644 index 0625624b77..0000000000 --- a/public/docs/js/latest/api/core/DirectiveFactory-interface.jade +++ /dev/null @@ -1,46 +0,0 @@ - -p.location-badge. - exported from angular2/core - defined in angular2/src/core/metadata.ts (line 97) - -:markdown - DirectiveMetadata factory for creating annotations, decorators or DSL. - - ## Example as TypeScript Decorator - - ``` - import {Directive} from "angular2/angular2"; - - @Directive({...}) - class MyDirective { - constructor() { - ... - } - } - ``` - - ## Example as ES5 DSL - - ``` - var MyDirective = ng - .Directive({...}) - .Class({ - constructor: function() { - ... - } - }) - ``` - - ## Example as ES5 annotation - - ``` - var MyDirective = function() { - ... - }; - - MyDirective.annotations = [ - new ng.Directive({...}) - ] - ``` - - diff --git a/public/docs/js/latest/api/core/DirectiveMetadata-class.jade b/public/docs/js/latest/api/core/DirectiveMetadata-class.jade deleted file mode 100644 index 09e6144d9f..0000000000 --- a/public/docs/js/latest/api/core/DirectiveMetadata-class.jade +++ /dev/null @@ -1,809 +0,0 @@ - -p.location-badge. - exported from angular2/core - defined in angular2/src/core/metadata/directives.ts (line 3) - -:markdown - Directives allow you to attach behavior to elements in the DOM. - - DirectiveMetadatas with an embedded view are called ComponentMetadatas. - - A directive consists of a single directive annotation and a controller class. When the - directive's `selector` matches - elements in the DOM, the following steps occur: - - 1. For each directive, the `ElementInjector` attempts to resolve the directive's constructor - arguments. - 2. Angular instantiates directives for each matched element using `ElementInjector` in a - depth-first order, - as declared in the HTML. - - ## Understanding How Injection Works - - There are three stages of injection resolution. - - *Pre-existing Injectors*: - - The terminal Injector cannot resolve dependencies. It either throws an error or, if - the dependency was - specified as `@Optional`, returns `null`. - - The platform injector resolves browser singleton resources, such as: cookies, title, - location, and others. - - *Component Injectors*: Each component instance has its own Injector, and they follow - the same parent-child hierarchy - as the component instances in the DOM. - - *Element Injectors*: Each component instance has a Shadow DOM. Within the Shadow DOM each - element has an `ElementInjector` - which follow the same parent-child hierarchy as the DOM elements themselves. - - When a template is instantiated, it also must instantiate the corresponding directives in a - depth-first order. The - current `ElementInjector` resolves the constructor dependencies for each directive. - - Angular then resolves dependencies as follows, according to the order in which they appear in the - ViewMetadata: - - 1. Dependencies on the current element - 2. Dependencies on element injectors and their parents until it encounters a Shadow DOM boundary - 3. Dependencies on component injectors and their parents until it encounters the root component - 4. Dependencies on pre-existing injectors - - - The `ElementInjector` can inject other directives, element-specific special objects, or it can - delegate to the parent - injector. - - To inject other directives, declare the constructor parameter as: - - `directive:DirectiveType`: a directive on the current element only - - `@Host() directive:DirectiveType`: any directive that matches the type between the current - element and the - Shadow DOM root. - - `@Query(DirectiveType) query:QueryList`: A live collection of direct child - directives. - - `@QueryDescendants(DirectiveType) query:QueryList`: A live collection of any - child directives. - - To inject element-specific special objects, declare the constructor parameter as: - - `element: ElementRef` to obtain a reference to logical element in the view. - - `viewContainer: ViewContainerRef` to control child template instantiation, for - DirectiveMetadata directives only - - `bindingPropagation: BindingPropagation` to control change detection in a more granular way. - - ## Example - - The following example demonstrates how dependency injection resolves constructor arguments in - practice. - - - Assume this HTML template: - - ``` -
-
-
-
-
-
-
-
-
-
- ``` - - With the following `dependency` decorator and `SomeService` injectable class. - - ``` - @Injectable() - class SomeService { - } - - @Directive({ - selector: '[dependency]', - properties: [ - 'id: dependency' - ] - }) - class Dependency { - id:string; - } - ``` - - Let's step through the different ways in which `MyDirective` could be declared... - - - ### No injection - - Here the constructor is declared with no arguments, therefore nothing is injected into - `MyDirective`. - - ``` - @Directive({ selector: '[my-directive]' }) - class MyDirective { - constructor() { - } - } - ``` - - This directive would be instantiated with no dependencies. - - - ### Component-level injection - - Directives can inject any injectable instance from the closest component injector or any of its - parents. - - Here, the constructor declares a parameter, `someService`, and injects the `SomeService` type - from the parent - component's injector. - ``` - @Directive({ selector: '[my-directive]' }) - class MyDirective { - constructor(someService: SomeService) { - } - } - ``` - - This directive would be instantiated with a dependency on `SomeService`. - - - ### Injecting a directive from the current element - - Directives can inject other directives declared on the current element. - - ``` - @Directive({ selector: '[my-directive]' }) - class MyDirective { - constructor(dependency: Dependency) { - expect(dependency.id).toEqual(3); - } - } - ``` - This directive would be instantiated with `Dependency` declared at the same element, in this case - `dependency="3"`. - - ### Injecting a directive from any ancestor elements - - Directives can inject other directives declared on any ancestor element (in the current Shadow - DOM), i.e. on the current element, the - parent element, or its parents. - ``` - @Directive({ selector: '[my-directive]' }) - class MyDirective { - constructor(@Host() dependency: Dependency) { - expect(dependency.id).toEqual(2); - } - } - ``` - - `@Host` checks the current element, the parent, as well as its parents recursively. If - `dependency="2"` didn't - exist on the direct parent, this injection would - have returned - `dependency="1"`. - - - ### Injecting a live collection of direct child directives - - - A directive can also query for other child directives. Since parent directives are instantiated - before child directives, a directive can't simply inject the list of child directives. Instead, - the directive injects a QueryList, which updates its contents as children are added, - removed, or moved by a directive that uses a ViewContainerRef such as a `ng-for`, an - `ng-if`, or an `ng-switch`. - - ``` - @Directive({ selector: '[my-directive]' }) - class MyDirective { - constructor(@Query(Dependency) dependencies:QueryList) { - } - } - ``` - - This directive would be instantiated with a QueryList which contains `Dependency` 4 and - 6. Here, `Dependency` 5 would not be included, because it is not a direct child. - - ### Injecting a live collection of descendant directives - - By passing the descendant flag to `@Query` above, we can include the children of the child - elements. - - ``` - @Directive({ selector: '[my-directive]' }) - class MyDirective { - constructor(@Query(Dependency, {descendants: true}) dependencies:QueryList) { - } - } - ``` - - This directive would be instantiated with a Query which would contain `Dependency` 4, 5 and 6. - - ### Optional injection - - The normal behavior of directives is to return an error when a specified dependency cannot be - resolved. If you - would like to inject `null` on unresolved dependency instead, you can annotate that dependency - with `@Optional()`. - This explicitly permits the author of a template to treat some of the surrounding directives as - optional. - - ``` - @Directive({ selector: '[my-directive]' }) - class MyDirective { - constructor(@Optional() dependency:Dependency) { - } - } - ``` - - This directive would be instantiated with a `Dependency` directive found on the current element. - If none can be - found, the injector supplies `null` instead of throwing an error. - - ## Example - - Here we use a decorator directive to simply define basic tool-tip behavior. - - ``` - @Directive({ - selector: '[tooltip]', - properties: [ - 'text: tooltip' - ], - host: { - '(mouseenter)': 'onMouseEnter()', - '(mouseleave)': 'onMouseLeave()' - } - }) - class Tooltip{ - text:string; - overlay:Overlay; // NOT YET IMPLEMENTED - overlayManager:OverlayManager; // NOT YET IMPLEMENTED - - constructor(overlayManager:OverlayManager) { - this.overlay = overlay; - } - - onMouseEnter() { - // exact signature to be determined - this.overlay = this.overlayManager.open(text, ...); - } - - onMouseLeave() { - this.overlay.close(); - this.overlay = null; - } - } - ``` - In our HTML template, we can then add this behavior to a `
` or any other element with the - `tooltip` selector, - like so: - - ``` -
- ``` - - Directives can also control the instantiation, destruction, and positioning of inline template - elements: - - A directive uses a ViewContainerRef to instantiate, insert, move, and destroy views at - runtime. - The ViewContainerRef is created as a result of `