Skip to content
This repository was archived by the owner on Dec 4, 2017. It is now read-only.
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 0 additions & 2 deletions public/docs/_examples/upgrade/ts/classes/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,3 @@ app/**/*.js
app/**/*.js.map
test/unit/**/*.js
test/unit/**/*.js.map
test/e2e/**/*.js
test/e2e/**/*.js.map
5 changes: 0 additions & 5 deletions public/docs/_examples/upgrade/ts/classes/app/js/app.module.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,4 @@
// #docregion pre-bootstrap
// #docregion typings
/// <reference path="../../typings/angularjs/angular.d.ts" />
/// <reference path="../../typings/angularjs/angular-resource.d.ts" />
/// <reference path="../../typings/angularjs/angular-route.d.ts" />
// #enddocregion

import core from './core/core.module';
import phoneList from './phone_list/phone_list.module';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
'use strict';

/* http://docs.angularjs.org/guide/dev_guide.e2e-testing */
// #docregion declares
declare var browser:any, element:any, by:any;
// #enddocregion declares

describe('PhoneCat App', function() {

Expand Down
3 changes: 0 additions & 3 deletions public/docs/_examples/upgrade/ts/classes/test/test_helper.ts

This file was deleted.

4 changes: 3 additions & 1 deletion public/docs/_examples/upgrade/ts/classes/tsconfig.1.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@
"removeComments": false
},
"exclude": [
"node_modules"
"node_modules",
"typings/main.d.ts",
"typings/main"
]
}
10 changes: 10 additions & 0 deletions public/docs/_examples/upgrade/ts/classes/typings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"ambientDependencies": {
"angular": "github:DefinitelyTyped/DefinitelyTyped/angularjs/angular.d.ts#3bebbe1baee04846cc46ed7249e8117e4cd7c7ff",
"angular-mocks": "github:DefinitelyTyped/DefinitelyTyped/angularjs/angular-mocks.d.ts#77dd2668f85730372aa8e62152e652048e8b6b87",
"angular-resource": "github:DefinitelyTyped/DefinitelyTyped/angularjs/angular-resource.d.ts#c6609aff88f2c59e4df9adb93df5c7932adfd7b4",
"angular-route": "github:DefinitelyTyped/DefinitelyTyped/angularjs/angular-route.d.ts#cf172aab99c3139a718aa8e65398a22c53dd7ead",
"jasmine": "github:DefinitelyTyped/DefinitelyTyped/jasmine/jasmine.d.ts#26c98c8a9530c44f8c801ccc3b2057e2101187ee",
"jquery": "github:DefinitelyTyped/DefinitelyTyped/jquery/jquery.d.ts#cf2a968f0edd7d30773f7d23fe3708fa029d5ab7"
}
}
2 changes: 0 additions & 2 deletions public/docs/_examples/upgrade/ts/ng2_components/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,3 @@ app/**/*.js
app/**/*.js.map
test/unit/**/*.js
test/unit/**/*.js.map
test/e2e/**/*.js
test/e2e/**/*.js.map
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
/// <reference path="../../typings/angularjs/angular.d.ts" />
/// <reference path="../../typings/angularjs/angular-resource.d.ts" />
/// <reference path="../../typings/angularjs/angular-route.d.ts" />

// #docregion adapter-import
import {UpgradeAdapter} from 'angular2/upgrade';
// #enddocregion adapter-import
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@ describe('PhoneCat App', function() {

query.clear();
// https://github.com/angular/protractor/issues/2019
let str = 'motorola';
for (let i:number = 0; i < str.length; i++) {
var str = 'motorola';
for (var i = 0; i < str.length; i++) {
query.sendKeys(str.charAt(i));
}

Expand All @@ -50,8 +50,8 @@ describe('PhoneCat App', function() {

//let's narrow the dataset to make the test assertions shorter
// https://github.com/angular/protractor/issues/2019
let str = 'tablet';
for (let i:number = 0; i < str.length; i++) {
var str = 'tablet';
for (var i = 0; i < str.length; i++) {
query.sendKeys(str.charAt(i));
}

Expand All @@ -72,8 +72,8 @@ describe('PhoneCat App', function() {
it('should render phone specific links', function() {
var query = element(by.css('input'));
// https://github.com/angular/protractor/issues/2019
let str = 'nexus';
for (let i:number = 0; i < str.length; i++) {
var str = 'nexus';
for (var i = 0; i < str.length; i++) {
query.sendKeys(str.charAt(i));
}
element.all(by.css('.phones li a')).first().click();
Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@
"removeComments": false
},
"exclude": [
"node_modules"
"node_modules",
"typings/main.d.ts",
"typings/main"
]
}
10 changes: 10 additions & 0 deletions public/docs/_examples/upgrade/ts/ng2_components/typings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"ambientDependencies": {
"angular": "github:DefinitelyTyped/DefinitelyTyped/angularjs/angular.d.ts#3bebbe1baee04846cc46ed7249e8117e4cd7c7ff",
"angular-mocks": "github:DefinitelyTyped/DefinitelyTyped/angularjs/angular-mocks.d.ts#77dd2668f85730372aa8e62152e652048e8b6b87",
"angular-resource": "github:DefinitelyTyped/DefinitelyTyped/angularjs/angular-resource.d.ts#c6609aff88f2c59e4df9adb93df5c7932adfd7b4",
"angular-route": "github:DefinitelyTyped/DefinitelyTyped/angularjs/angular-route.d.ts#cf172aab99c3139a718aa8e65398a22c53dd7ead",
"jasmine": "github:DefinitelyTyped/DefinitelyTyped/jasmine/jasmine.d.ts#26c98c8a9530c44f8c801ccc3b2057e2101187ee",
"jquery": "github:DefinitelyTyped/DefinitelyTyped/jquery/jquery.d.ts#cf2a968f0edd7d30773f7d23fe3708fa029d5ab7"
}
}
2 changes: 0 additions & 2 deletions public/docs/_examples/upgrade/ts/ng2_final/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,3 @@ app/**/*.js
app/**/*.js.map
test/unit/**/*.js
test/unit/**/*.js.map
test/e2e/**/*.js
test/e2e/**/*.js.map
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@ describe('PhoneCat App', function() {

query.clear();
// https://github.com/angular/protractor/issues/2019
let str = 'motorola';
for (let i:number = 0; i < str.length; i++) {
var str = 'motorola';
for (var i = 0; i < str.length; i++) {
query.sendKeys(str.charAt(i));
}

Expand All @@ -52,8 +52,8 @@ describe('PhoneCat App', function() {

//let's narrow the dataset to make the test assertions shorter
// https://github.com/angular/protractor/issues/2019
let str = 'tablet';
for (let i:number = 0; i < str.length; i++) {
var str = 'tablet';
for (var i = 0; i < str.length; i++) {
query.sendKeys(str.charAt(i));
}

Expand All @@ -74,8 +74,8 @@ describe('PhoneCat App', function() {
it('should render phone specific links', function() {
var query = element(by.css('input'));
// https://github.com/angular/protractor/issues/2019
let str = 'nexus';
for (let i:number = 0; i < str.length; i++) {
var str = 'nexus';
for (var i = 0; i < str.length; i++) {
query.sendKeys(str.charAt(i));
}
element.all(by.css('.phones li a')).first().click();
Expand Down

This file was deleted.

4 changes: 3 additions & 1 deletion public/docs/_examples/upgrade/ts/ng2_final/tsconfig.1.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@
"removeComments": false
},
"exclude": [
"node_modules"
"node_modules",
"typings/main.d.ts",
"typings/main"
]
}
5 changes: 5 additions & 0 deletions public/docs/_examples/upgrade/ts/ng2_final/typings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"ambientDependencies": {
"jasmine": "github:DefinitelyTyped/DefinitelyTyped/jasmine/jasmine.d.ts#26c98c8a9530c44f8c801ccc3b2057e2101187ee"
}
}
2 changes: 0 additions & 2 deletions public/docs/_examples/upgrade/ts/ng2_initial/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,3 @@ app/**/*.js
app/**/*.js.map
test/unit/**/*.js
test/unit/**/*.js.map
test/e2e/**/*.js
test/e2e/**/*.js.map
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
/// <reference path="../../typings/angularjs/angular.d.ts" />
/// <reference path="../../typings/angularjs/angular-resource.d.ts" />
/// <reference path="../../typings/angularjs/angular-route.d.ts" />

// #docregion adapter-import
import {UpgradeAdapter} from 'angular2/upgrade';
// #enddocregion adapter-import
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,10 @@ module.exports = function(config){
'node_modules/rxjs/bundles/Rx.js',
'node_modules/angular2/bundles/http.dev.js',
// #enddocregion ng2-http
'test/karma_test_shim.js',
// #docregion ng2-testing
'node_modules/angular2/bundles/testing.dev.js',
// #enddocregion ng2-testing
'test/karma_test_shim.js',
{pattern: 'app/js/**/*.js', included: false, watched: true},
{pattern: 'test/unit/**/*.js', included: false, watched: true}
// #docregion ng2
Expand Down

This file was deleted.

4 changes: 3 additions & 1 deletion public/docs/_examples/upgrade/ts/ng2_initial/tsconfig.1.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@
"removeComments": false
},
"exclude": [
"node_modules"
"node_modules",
"typings/main.d.ts",
"typings/main"
]
}
10 changes: 10 additions & 0 deletions public/docs/_examples/upgrade/ts/ng2_initial/typings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"ambientDependencies": {
"angular": "github:DefinitelyTyped/DefinitelyTyped/angularjs/angular.d.ts#3bebbe1baee04846cc46ed7249e8117e4cd7c7ff",
"angular-mocks": "github:DefinitelyTyped/DefinitelyTyped/angularjs/angular-mocks.d.ts#77dd2668f85730372aa8e62152e652048e8b6b87",
"angular-resource": "github:DefinitelyTyped/DefinitelyTyped/angularjs/angular-resource.d.ts#c6609aff88f2c59e4df9adb93df5c7932adfd7b4",
"angular-route": "github:DefinitelyTyped/DefinitelyTyped/angularjs/angular-route.d.ts#cf172aab99c3139a718aa8e65398a22c53dd7ead",
"jasmine": "github:DefinitelyTyped/DefinitelyTyped/jasmine/jasmine.d.ts#26c98c8a9530c44f8c801ccc3b2057e2101187ee",
"jquery": "github:DefinitelyTyped/DefinitelyTyped/jquery/jquery.d.ts#cf2a968f0edd7d30773f7d23fe3708fa029d5ab7"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,3 @@ app/**/*.js
app/**/*.js.map
test/unit/**/*.js
test/unit/**/*.js.map
test/e2e/**/*.js
test/e2e/**/*.js.map
Original file line number Diff line number Diff line change
@@ -1,10 +1,4 @@
// #docregion pre-bootstrap
// #docregion typings
/// <reference path="../../typings/angularjs/angular.d.ts" />
/// <reference path="../../typings/angularjs/angular-resource.d.ts" />
/// <reference path="../../typings/angularjs/angular-route.d.ts" />
// #enddocregion

import core from './core/core.module';
import phoneList from './phone_list/phone_list.module';
import phoneDetail from './phone_detail/phone_detail.module';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
'use strict';

/* http://docs.angularjs.org/guide/dev_guide.e2e-testing */
// #docregion declares
declare var browser:any, element:any, by:any;
// #enddocregion declares

describe('PhoneCat App', function() {

Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@
"removeComments": false
},
"exclude": [
"node_modules"
"node_modules",
"typings/main.d.ts",
"typings/main"
]
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"ambientDependencies": {
"angular": "github:DefinitelyTyped/DefinitelyTyped/angularjs/angular.d.ts#3bebbe1baee04846cc46ed7249e8117e4cd7c7ff",
"angular-mocks": "github:DefinitelyTyped/DefinitelyTyped/angularjs/angular-mocks.d.ts#77dd2668f85730372aa8e62152e652048e8b6b87",
"angular-resource": "github:DefinitelyTyped/DefinitelyTyped/angularjs/angular-resource.d.ts#c6609aff88f2c59e4df9adb93df5c7932adfd7b4",
"angular-route": "github:DefinitelyTyped/DefinitelyTyped/angularjs/angular-route.d.ts#cf172aab99c3139a718aa8e65398a22c53dd7ead",
"jasmine": "github:DefinitelyTyped/DefinitelyTyped/jasmine/jasmine.d.ts#26c98c8a9530c44f8c801ccc3b2057e2101187ee",
"jquery": "github:DefinitelyTyped/DefinitelyTyped/jquery/jquery.d.ts#cf2a968f0edd7d30773f7d23fe3708fa029d5ab7"
}
}
Loading