docs(aio): Cleanup examples with edits from Igor/George (#23234)

PR Close #23234
This commit is contained in:
Brandon Roberts 2018-04-16 07:14:31 -05:00 committed by Jason Aden
parent 764f471dc0
commit fe312ccb4c
5 changed files with 4 additions and 13 deletions

View File

@ -44,9 +44,6 @@ class Hero {
} }
} }
// TODO(i): temorarily disable these tests because angular-in-memory-web-api is not compatible with rxjs v6 yet
// and we don't have the backwards compatibility package yet.
// Reenable after rxjs v6 compatibility package is out or angular-in-memory-web-api is compatible with rxjs v6
describe('Tutorial part 6', () => { describe('Tutorial part 6', () => {
beforeAll(() => browser.get('')); beforeAll(() => browser.get(''));

View File

@ -27,8 +27,7 @@
// other libraries // other libraries
'rxjs': 'npm:rxjs', 'rxjs': 'npm:rxjs',
'angular-in-memory-web-api': 'npm:angular-in-memory-web-api/bundles/in-memory-web-api.umd.js', 'angular-in-memory-web-api': 'npm:angular-in-memory-web-api/bundles/in-memory-web-api.umd.js'
'tslib': 'npm:tslib/tslib.js',
}, },
// packages tells the System loader how to load when no filename and/or no extension // packages tells the System loader how to load when no filename and/or no extension
packages: { packages: {
@ -37,11 +36,7 @@
'rxjs/operators': {main: 'index.js', defaultExtension: 'js' }, 'rxjs/operators': {main: 'index.js', defaultExtension: 'js' },
'rxjs/testing': {main: 'index.js', defaultExtension: 'js' }, 'rxjs/testing': {main: 'index.js', defaultExtension: 'js' },
'rxjs/websocket': {main: 'index.js', defaultExtension: 'js' }, 'rxjs/websocket': {main: 'index.js', defaultExtension: 'js' },
'rxjs/ajax': {main: 'index.js', defaultExtension: 'js' }, 'rxjs': { main: 'index.js', defaultExtension: 'js' },
'rxjs/operators': {main: 'index.js', defaultExtension: 'js' },
'rxjs/testing': {main: 'index.js', defaultExtension: 'js' },
'rxjs/websocket': {main: 'index.js', defaultExtension: 'js' },
'rxjs': { main: 'index.js', defaultExtension: 'js' }
} }
}); });
})(this); })(this);

View File

@ -18,7 +18,6 @@
"angular-in-memory-web-api", "angular-in-memory-web-api",
"core-js", "core-js",
"rxjs", "rxjs",
"web-animations-js",
"zone.js" "zone.js"
], ],
"devDependencies": [ "devDependencies": [

View File

@ -35,7 +35,7 @@ testem.log
yarn-error.log yarn-error.log
# e2e # e2e
/e2e/(?!protractor)*.js /e2e/*.js
/e2e/*.map /e2e/*.map
# System Files # System Files

View File

@ -50,7 +50,7 @@ import 'core-js/es7/reflect';
* Required to support Web Animations `@angular/platform-browser/animations`. * Required to support Web Animations `@angular/platform-browser/animations`.
* Needed for: All but Chrome, Firefox and Opera. http://caniuse.com/#feat=web-animation * Needed for: All but Chrome, Firefox and Opera. http://caniuse.com/#feat=web-animation
**/ **/
import 'web-animations-js'; // Run `npm install --save web-animations-js`. // import 'web-animations-js';
/** /**
* By default, zone.js will patch all possible macroTask and DomEvents * By default, zone.js will patch all possible macroTask and DomEvents