Merge remote-tracking branch 'remotes/angular.io/master'
# Conflicts: # public/docs/ts/latest/cookbook/component-communication.jade # public/docs/ts/latest/guide/style-guide.jade # public/docs/ts/latest/guide/upgrade.jade
This commit is contained in:
commit
dd4e887b47
|
@ -14,6 +14,7 @@ pubspec.lock
|
|||
.idea
|
||||
**/js/latest/api
|
||||
**/ts/latest/api
|
||||
**/dart/latest/api
|
||||
**/docs/**/_fragments
|
||||
_.*
|
||||
**/resources/zips
|
||||
|
|
35
gulpfile.js
35
gulpfile.js
|
@ -231,19 +231,33 @@ function runE2eTsTests(appDir, outputFile) {
|
|||
}
|
||||
|
||||
function runProtractor(prepPromise, appDir, appRunSpawnInfo, outputFile) {
|
||||
var specFilename = path.resolve(`${appDir}/../e2e-spec.ts`);
|
||||
return prepPromise
|
||||
.catch(function(){
|
||||
var emsg = `AppDir failed during compile: ${appDir}\n\n`;
|
||||
var emsg = `Application at ${appDir} failed to transpile.\n\n`;
|
||||
gutil.log(emsg);
|
||||
fs.appendFileSync(outputFile, emsg);
|
||||
return Promise.reject(emsg);
|
||||
})
|
||||
.then(function (data) {
|
||||
var transpileError = false;
|
||||
|
||||
// start protractor
|
||||
var specFilename = path.resolve(`${appDir}/../e2e-spec.ts`);
|
||||
|
||||
var spawnInfo = spawnExt('npm', [ 'run', 'protractor', '--', 'protractor.config.js',
|
||||
`--specs=${specFilename}`, '--params.appDir=' + appDir, '--params.outputFile=' + outputFile], { cwd: EXAMPLES_PROTRACTOR_PATH });
|
||||
return spawnInfo.promise;
|
||||
|
||||
spawnInfo.proc.stderr.on('data', function (data) {
|
||||
transpileError = transpileError || /npm ERR! Exit status 100/.test(data.toString());
|
||||
});
|
||||
return spawnInfo.promise.catch(function(err) {
|
||||
if (transpileError) {
|
||||
var emsg = `${specFilename} failed to transpile.\n\n`;
|
||||
gutil.log(emsg);
|
||||
fs.appendFileSync(outputFile, emsg);
|
||||
}
|
||||
return Promise.reject(emsg);
|
||||
});
|
||||
})
|
||||
.then(
|
||||
function() { return finish(true);},
|
||||
|
@ -373,7 +387,6 @@ gulp.task('_copy-example-boilerplate', copyExampleBoilerplate);
|
|||
// copies boilerplate files to locations
|
||||
// where an example app is found
|
||||
// also copies certain web files (e.g., styles.css) to ~/_examples/**/dart/**/web
|
||||
// also copies protractor.config.js file
|
||||
function copyExampleBoilerplate() {
|
||||
gutil.log('Copying example boilerplate files');
|
||||
var sourceFiles = _exampleBoilerplateFiles.map(function(fn) {
|
||||
|
@ -390,8 +403,7 @@ function copyExampleBoilerplate() {
|
|||
.then(function() {
|
||||
return copyFiles(dartWebSourceFiles, dartExampleWebPaths);
|
||||
})
|
||||
// copy files from _examples/_protractor dir to each subdir that
|
||||
// contains a e2e-spec file.
|
||||
// copy certain files from _examples/_protractor dir to each subdir that contains an e2e-spec file.
|
||||
.then(function() {
|
||||
var protractorSourceFiles =
|
||||
_exampleProtractorBoilerplateFiles
|
||||
|
@ -474,11 +486,8 @@ gulp.task('build-js-api-docs', ['_shred-api-examples'], function() {
|
|||
return buildApiDocs('js');
|
||||
});
|
||||
|
||||
gulp.task('build-plunkers', function() {
|
||||
return copyExampleBoilerplate()
|
||||
.then(function() {
|
||||
return plunkerBuilder.buildPlunkers(EXAMPLES_PATH, LIVE_EXAMPLES_PATH, { errFn: gutil.log });
|
||||
});
|
||||
gulp.task('build-plunkers', ['_copy-example-boilerplate'], function() {
|
||||
return plunkerBuilder.buildPlunkers(EXAMPLES_PATH, LIVE_EXAMPLES_PATH, { errFn: gutil.log });
|
||||
});
|
||||
|
||||
gulp.task('build-dart-cheatsheet', [], function() {
|
||||
|
@ -586,11 +595,11 @@ gulp.task('_harp-compile', function() {
|
|||
});
|
||||
});
|
||||
|
||||
gulp.task('_shred-devguide-examples', ['_shred-clean-devguide'], function() {
|
||||
gulp.task('_shred-devguide-examples', ['_shred-clean-devguide', '_copy-example-boilerplate'], function() {
|
||||
return docShredder.shred( _devguideShredOptions);
|
||||
});
|
||||
|
||||
gulp.task('_shred-devguide-shared-jade', ['_shred-clean-devguide-shared-jade'], function() {
|
||||
gulp.task('_shred-devguide-shared-jade', ['_shred-clean-devguide-shared-jade', '_copy-example-boilerplate'], function() {
|
||||
return docShredder.shred( _devguideShredJadeOptions);
|
||||
});
|
||||
|
||||
|
|
|
@ -117,6 +117,7 @@ function sendKeys(element, str) {
|
|||
// better to create a resolved promise here but ... don't know how with protractor;
|
||||
}
|
||||
|
||||
// See http://jasmine.github.io/2.1/custom_reporter.html
|
||||
function Reporter(options) {
|
||||
var _defaultOutputFile = path.resolve(process.cwd(), "../../../../", 'protractor-results.txt');
|
||||
options.outputFile = options.outputFile || _defaultOutputFile;
|
||||
|
@ -156,6 +157,11 @@ function Reporter(options) {
|
|||
|
||||
_currentSuite.specs.push(currentSpec);
|
||||
log(spec.status + ' - ' + spec.description);
|
||||
if (spec.status === 'failed') {
|
||||
spec.failedExpectations.forEach(function(err) {
|
||||
log(err.message);
|
||||
});
|
||||
}
|
||||
};
|
||||
|
||||
this.jasmineDone = function() {
|
||||
|
|
|
@ -7,13 +7,13 @@ describe('Architecture', function () {
|
|||
browser.get('');
|
||||
});
|
||||
|
||||
function itReset(name: string, func: (v: void) => any) {
|
||||
function itReset(name: string, func: () => any) {
|
||||
it(name, function() {
|
||||
browser.get('').then(func);
|
||||
});
|
||||
}
|
||||
|
||||
it('should display correct title: ' + title, function () {
|
||||
it(`should display correct title: ${title}`, function () {
|
||||
expect(element(by.css('h2')).getText()).toEqual(title);
|
||||
});
|
||||
|
||||
|
|
|
@ -7,7 +7,7 @@ describe('Attribute directives', function () {
|
|||
browser.get('');
|
||||
});
|
||||
|
||||
it('should display correct title: ' + _title, function () {
|
||||
it(`should display correct title: ${_title}`, function () {
|
||||
expect(element(by.css('h1')).getText()).toEqual(_title);
|
||||
});
|
||||
|
||||
|
|
|
@ -29,19 +29,18 @@ describe('Hierarchical dependency injection', function () {
|
|||
testEdit(false);
|
||||
});
|
||||
|
||||
function testEdit(shouldSave) {
|
||||
let inputEle;
|
||||
function testEdit(shouldSave: boolean) {
|
||||
// select 2nd ele
|
||||
let heroEle = element.all(by.css('heroes-list li')).get(1);
|
||||
// get the 2nd span which is the name of the hero
|
||||
let heroNameEle = heroEle.all(by.css('hero-card span')).get(1);
|
||||
let editButtonEle = heroEle.element(by.cssContainingText('button','edit'));
|
||||
editButtonEle.click().then(function() {
|
||||
inputEle = heroEle.element(by.css('hero-editor input'));
|
||||
let inputEle = heroEle.element(by.css('hero-editor input'));
|
||||
// return inputEle.sendKeys("foo");
|
||||
return sendKeys(inputEle, "foo");
|
||||
}).then(function() {
|
||||
buttonName = shouldSave ? 'save' : 'cancel';
|
||||
let buttonName = shouldSave ? 'save' : 'cancel';
|
||||
let buttonEle = heroEle.element(by.cssContainingText('button', buttonName));
|
||||
return buttonEle.click();
|
||||
}).then(function() {
|
||||
|
|
|
@ -7,18 +7,17 @@ describe('Homepage Hello World', function () {
|
|||
|
||||
// Does it even launch?
|
||||
let expectedLabel = 'Name:';
|
||||
it('should display the label: ' + expectedLabel, function () {
|
||||
it(`should display the label: ${expectedLabel}`, function () {
|
||||
expect(element(by.css('label')).getText()).toEqual(expectedLabel);
|
||||
});
|
||||
|
||||
it('should display entered name', function () {
|
||||
let testName = 'Bobby Joe';
|
||||
let newValue;
|
||||
let nameEle = element.all(by.css('input')).get(0);
|
||||
nameEle.getAttribute('value').then(function(value) {
|
||||
// nameEle.sendKeys(testName); // should work but doesn't
|
||||
sendKeys(nameEle, testName); // utility that does work
|
||||
newValue = value + testName; // old input box value + new name
|
||||
let newValue = value + testName; // old input box value + new name
|
||||
expect(nameEle.getAttribute('value')).toEqual(newValue);
|
||||
}).then(function() {
|
||||
// Check the interpolated message built from name
|
||||
|
|
|
@ -7,7 +7,7 @@ describe('Homepage Tabs', function () {
|
|||
|
||||
// Does it even launch?
|
||||
let expectedAppTitle = 'Tabs Demo';
|
||||
it('should display app title: ' + expectedAppTitle, function () {
|
||||
it(`should display app title: ${expectedAppTitle}`, function () {
|
||||
expect(element(by.css('h4')).getText()).toEqual(expectedAppTitle);
|
||||
});
|
||||
|
||||
|
|
|
@ -7,7 +7,7 @@ describe('Homepage Todo', function () {
|
|||
|
||||
// Does it even launch?
|
||||
let expectedAppTitle = 'Todo';
|
||||
it('should display app title: ' + expectedAppTitle, function () {
|
||||
it(`should display app title: ${expectedAppTitle}`, function () {
|
||||
expect(element(by.css('h2')).getText()).toEqual(expectedAppTitle);
|
||||
});
|
||||
|
||||
|
|
|
@ -61,7 +61,7 @@ describe('Lifecycle hooks', function () {
|
|||
let powerInputEle = inputEles.get(0);
|
||||
let titleEle = doCheckViewEle.element(by.css('p'));
|
||||
let changeLogEles = doCheckViewEle.all(by.css('div'));
|
||||
let logCount;
|
||||
let logCount: number;
|
||||
|
||||
expect(titleEle.getText()).toContain('Windstorm can sing');
|
||||
changeLogEles.count().then(function(count) {
|
||||
|
@ -92,7 +92,7 @@ describe('Lifecycle hooks', function () {
|
|||
let commentEle = parentEle.element(by.className('comment'));
|
||||
let logEles = parentEle.all(by.css('h4 ~ div'));
|
||||
let childViewInputEle = parentEle.element(by.css('my-child input'));
|
||||
let logCount;
|
||||
let logCount: number;
|
||||
|
||||
expect(childViewInputEle.getAttribute('value')).toContain('Magneta');
|
||||
expect(commentEle.isPresent()).toBe(false, 'comment should not be in DOM');
|
||||
|
@ -121,7 +121,7 @@ describe('Lifecycle hooks', function () {
|
|||
let commentEle = parentEle.element(by.className('comment'));
|
||||
let logEles = parentEle.all(by.css('h4 ~ div'));
|
||||
let childViewInputEle = parentEle.element(by.css('my-child input'));
|
||||
let logCount;
|
||||
let logCount: number;
|
||||
|
||||
expect(childViewInputEle.getAttribute('value')).toContain('Magneta');
|
||||
expect(commentEle.isPresent()).toBe(false, 'comment should not be in DOM');
|
||||
|
|
|
@ -3,12 +3,11 @@ describe('QuickStart E2E Tests', function () {
|
|||
|
||||
let expectedMsg = 'My First Angular 2 App';
|
||||
|
||||
|
||||
beforeEach(function () {
|
||||
browser.get('');
|
||||
});
|
||||
|
||||
it('should display: ' + expectedMsg, function () {
|
||||
it(`should display: ${expectedMsg}`, function () {
|
||||
expect(element(by.css('h1')).getText()).toEqual(expectedMsg);
|
||||
});
|
||||
|
||||
|
|
|
@ -1,111 +0,0 @@
|
|||
/// <reference path="../_protractor/e2e.d.ts" />
|
||||
describe('Router', function () {
|
||||
beforeAll(function () {
|
||||
browser.get('');
|
||||
});
|
||||
function getPageStruct() {
|
||||
hrefEles = element.all(by.css('my-app a'));
|
||||
return {
|
||||
hrefs: hrefEles,
|
||||
routerParent: element(by.css('my-app > undefined')),
|
||||
routerTitle: element(by.css('my-app > undefined > h2')),
|
||||
crisisHref: hrefEles.get(0),
|
||||
crisisList: element.all(by.css('my-app > undefined > undefined li')),
|
||||
crisisDetail: element(by.css('my-app > undefined > undefined > div')),
|
||||
crisisDetailTitle: element(by.css('my-app > undefined > undefined > div > h3')),
|
||||
heroesHref: hrefEles.get(1),
|
||||
heroesList: element.all(by.css('my-app > undefined li')),
|
||||
heroDetail: element(by.css('my-app > undefined > div')),
|
||||
heroDetailTitle: element(by.css('my-app > undefined > div > h3')),
|
||||
};
|
||||
}
|
||||
it('should be able to see the start screen', function () {
|
||||
var page = getPageStruct();
|
||||
expect(page.hrefs.count()).toEqual(2, 'should be two dashboard choices');
|
||||
expect(page.crisisHref.getText()).toEqual("Crisis Center");
|
||||
expect(page.heroesHref.getText()).toEqual("Heroes");
|
||||
});
|
||||
it('should be able to see crises center items', function () {
|
||||
var page = getPageStruct();
|
||||
expect(page.crisisList.count()).toBe(4, "should be 4 crisis center entries at start");
|
||||
});
|
||||
it('should be able to see hero items', function () {
|
||||
var page = getPageStruct();
|
||||
page.heroesHref.click().then(function () {
|
||||
expect(page.routerTitle.getText()).toContain('HEROES');
|
||||
expect(page.heroesList.count()).toBe(6, "should be 6 heroes");
|
||||
});
|
||||
});
|
||||
it('should be able to toggle the views', function () {
|
||||
var page = getPageStruct();
|
||||
page.crisisHref.click().then(function () {
|
||||
expect(page.crisisList.count()).toBe(4, "should be 4 crisis center entries");
|
||||
return page.heroesHref.click();
|
||||
}).then(function () {
|
||||
expect(page.heroesList.count()).toBe(6, "should be 6 heroes");
|
||||
});
|
||||
});
|
||||
it('should be able to edit and save details from the crisis center view', function () {
|
||||
crisisCenterEdit(2, true);
|
||||
});
|
||||
it('should be able to edit and cancel details from the crisis center view', function () {
|
||||
crisisCenterEdit(3, false);
|
||||
});
|
||||
it('should be able to edit and save details from the heroes view', function () {
|
||||
var page = getPageStruct();
|
||||
var heroEle, heroText;
|
||||
page.heroesHref.click().then(function () {
|
||||
heroEle = page.heroesList.get(4);
|
||||
return heroEle.getText();
|
||||
}).then(function (text) {
|
||||
expect(text.length).toBeGreaterThan(0, 'should have some text');
|
||||
// remove leading id from text
|
||||
heroText = text.substr(text.indexOf(' ')).trim();
|
||||
return heroEle.click();
|
||||
}).then(function () {
|
||||
expect(page.heroesList.count()).toBe(0, "should no longer see crisis center entries");
|
||||
expect(page.heroDetail.isPresent()).toBe(true, 'should be able to see crisis detail');
|
||||
expect(page.heroDetailTitle.getText()).toContain(heroText);
|
||||
var inputEle = page.heroDetail.element(by.css('input'));
|
||||
return sendKeys(inputEle, '-foo');
|
||||
}).then(function () {
|
||||
expect(page.heroDetailTitle.getText()).toContain(heroText + '-foo');
|
||||
var buttonEle = page.heroDetail.element(by.css('button'));
|
||||
return buttonEle.click();
|
||||
}).then(function () {
|
||||
expect(heroEle.getText()).toContain(heroText + '-foo');
|
||||
});
|
||||
});
|
||||
function crisisCenterEdit(index, shouldSave) {
|
||||
var page = getPageStruct();
|
||||
var crisisEle, crisisText;
|
||||
page.crisisHref.click()
|
||||
.then(function () {
|
||||
crisisEle = page.crisisList.get(index);
|
||||
return crisisEle.getText();
|
||||
}).then(function (text) {
|
||||
expect(text.length).toBeGreaterThan(0, 'should have some text');
|
||||
// remove leading id from text
|
||||
crisisText = text.substr(text.indexOf(' ')).trim();
|
||||
return crisisEle.click();
|
||||
}).then(function () {
|
||||
expect(page.crisisList.count()).toBe(0, "should no longer see crisis center entries");
|
||||
expect(page.crisisDetail.isPresent()).toBe(true, 'should be able to see crisis detail');
|
||||
expect(page.crisisDetailTitle.getText()).toContain(crisisText);
|
||||
var inputEle = page.crisisDetail.element(by.css('input'));
|
||||
return sendKeys(inputEle, '-foo');
|
||||
}).then(function () {
|
||||
expect(page.crisisDetailTitle.getText()).toContain(crisisText + '-foo');
|
||||
var buttonEle = page.crisisDetail.element(by.cssContainingText('button', shouldSave ? 'Save' : 'Cancel'));
|
||||
return buttonEle.click();
|
||||
}).then(function () {
|
||||
if (shouldSave) {
|
||||
expect(crisisEle.getText()).toContain(crisisText + '-foo');
|
||||
}
|
||||
else {
|
||||
expect(crisisEle.getText()).not.toContain(crisisText + '-foo');
|
||||
}
|
||||
});
|
||||
}
|
||||
});
|
||||
//# sourceMappingURL=e2e-spec.js.map
|
|
@ -6,7 +6,7 @@ describe('Router', function () {
|
|||
});
|
||||
|
||||
function getPageStruct() {
|
||||
hrefEles = element.all(by.css('my-app a'));
|
||||
let hrefEles = element.all(by.css('my-app a'));
|
||||
|
||||
return {
|
||||
hrefs: hrefEles,
|
||||
|
@ -66,7 +66,8 @@ describe('Router', function () {
|
|||
|
||||
it('should be able to edit and save details from the heroes view', function () {
|
||||
let page = getPageStruct();
|
||||
let heroEle, heroText;
|
||||
let heroEle: protractor.ElementFinder;
|
||||
let heroText: string;
|
||||
page.heroesHref.click().then(function() {
|
||||
heroEle = page.heroesList.get(4);
|
||||
return heroEle.getText();
|
||||
|
@ -90,9 +91,10 @@ describe('Router', function () {
|
|||
})
|
||||
});
|
||||
|
||||
function crisisCenterEdit(index, shouldSave) {
|
||||
function crisisCenterEdit(index: number, shouldSave: boolean) {
|
||||
let page = getPageStruct();
|
||||
let crisisEle, crisisText;
|
||||
let crisisEle: protractor.ElementFinder;
|
||||
let crisisText: string;
|
||||
page.crisisHref.click()
|
||||
.then(function () {
|
||||
crisisEle = page.crisisList.get(index);
|
||||
|
|
|
@ -6,7 +6,7 @@ describe('Router', function () {
|
|||
});
|
||||
|
||||
function getPageStruct() {
|
||||
hrefEles = element.all(by.css('my-app a'));
|
||||
let hrefEles = element.all(by.css('my-app a'));
|
||||
|
||||
return {
|
||||
hrefs: hrefEles,
|
||||
|
@ -66,7 +66,8 @@ describe('Router', function () {
|
|||
|
||||
it('should be able to edit and save details from the heroes view', function () {
|
||||
let page = getPageStruct();
|
||||
let heroEle, heroText;
|
||||
let heroEle: protractor.ElementFinder;
|
||||
let heroText: string;
|
||||
page.heroesHref.click().then(function() {
|
||||
heroEle = page.heroesList.get(4);
|
||||
return heroEle.getText();
|
||||
|
@ -90,9 +91,10 @@ describe('Router', function () {
|
|||
})
|
||||
});
|
||||
|
||||
function crisisCenterEdit(index, shouldSave) {
|
||||
function crisisCenterEdit(index: number, shouldSave: boolean) {
|
||||
let page = getPageStruct();
|
||||
let crisisEle, crisisText;
|
||||
let crisisEle: protractor.ElementFinder;
|
||||
let crisisText: string;
|
||||
page.crisisHref.click()
|
||||
.then(function () {
|
||||
crisisEle = page.crisisList.get(index);
|
||||
|
|
|
@ -70,7 +70,7 @@ describe('Server Communication', function () {
|
|||
});
|
||||
});
|
||||
|
||||
function testForRefreshedResult(keyPressed, done) {
|
||||
function testForRefreshedResult(keyPressed: string, done: () => void) {
|
||||
testForResult('my-wiki', keyPressed, false, done)
|
||||
}
|
||||
});
|
||||
|
@ -101,17 +101,17 @@ describe('Server Communication', function () {
|
|||
});
|
||||
|
||||
|
||||
function testForNewResult(keyPressed, done) {
|
||||
function testForNewResult(keyPressed: string, done: () => void) {
|
||||
testForResult('my-wiki-smart', keyPressed, false, done)
|
||||
}
|
||||
|
||||
function testForStaleResult(keyPressed, done) {
|
||||
function testForStaleResult(keyPressed: string, done: () => void) {
|
||||
testForResult('my-wiki-smart', keyPressed, true, done)
|
||||
}
|
||||
|
||||
});
|
||||
|
||||
function testForResult(componentTagName, keyPressed, hasListBeforeSearch, done) {
|
||||
function testForResult(componentTagName: string, keyPressed: string, hasListBeforeSearch: boolean, done: () => void) {
|
||||
let searchWait = 1000; // Wait for wikipedia but not so long that tests timeout
|
||||
let wikiComponent = element(by.tagName(componentTagName));
|
||||
expect(wikiComponent).toBeDefined('<' + componentTagName + '> must exist');
|
||||
|
|
|
@ -32,7 +32,7 @@ describe('Structural Directives', function () {
|
|||
let ngIfSiblingEle = ngIfParentEle.element(by.css('heavy-loader'));
|
||||
let cssButtonEle = element(by.cssContainingText('button', 'show | hide'));
|
||||
let cssSiblingEle = cssButtonEle.element(by.xpath('..')).element(by.css('heavy-loader'));
|
||||
let setConditionText;
|
||||
let setConditionText: string;
|
||||
setConditionButtonEle.getText().then(function(text) {
|
||||
setConditionText = text;
|
||||
expect(ngIfButtonEle.isPresent()).toBe(true, 'should be able to find ngIfButton');
|
||||
|
|
|
@ -1,10 +1,7 @@
|
|||
// #docregion
|
||||
|
||||
// app.component.ts
|
||||
import { Component } from '@angular/core';
|
||||
|
||||
import { HeroesComponent } from './heroes/heroes.component';
|
||||
import { HeroService } from './heroes/shared/hero.service';
|
||||
import { HeroesComponent, HeroService } from './heroes';
|
||||
|
||||
@Component({
|
||||
moduleId: module.id,
|
||||
|
|
|
@ -1,8 +1,7 @@
|
|||
// #docregion
|
||||
import { Component, OnInit } from '@angular/core';
|
||||
|
||||
import { Hero } from './shared/hero.model';
|
||||
import { HeroService } from './shared/hero.service';
|
||||
import { Hero, HeroService } from './shared';
|
||||
|
||||
@Component({
|
||||
selector: 'toh-heroes',
|
||||
|
|
|
@ -0,0 +1,2 @@
|
|||
export * from './shared';
|
||||
export * from './heroes.component';
|
|
@ -0,0 +1,3 @@
|
|||
export * from './hero.model';
|
||||
export * from './hero.service';
|
||||
export * from './mock-heroes';
|
|
@ -0,0 +1,2 @@
|
|||
export * from './heroes';
|
||||
export * from './app.component';
|
|
@ -0,0 +1,6 @@
|
|||
// #docregion
|
||||
import { bootstrap } from '@angular/platform-browser-dynamic';
|
||||
|
||||
import { AppComponent } from './app/app.component';
|
||||
|
||||
bootstrap(AppComponent, []);
|
|
@ -1,7 +1,7 @@
|
|||
import { Component } from '@angular/core';
|
||||
|
||||
import { HeroComponent } from './heroes/hero.component';
|
||||
import { UsersComponent } from './users/users.component';
|
||||
import { HeroComponent } from './heroes';
|
||||
import { UsersComponent } from './users';
|
||||
|
||||
@Component({
|
||||
selector: 'sg-app',
|
||||
|
|
|
@ -0,0 +1 @@
|
|||
export * from './hero.component';
|
|
@ -0,0 +1,3 @@
|
|||
export * from './heroes';
|
||||
export * from './users';
|
||||
export * from './app.component';
|
|
@ -0,0 +1 @@
|
|||
export * from './users.component';
|
|
@ -1,6 +1,6 @@
|
|||
import { Component } from '@angular/core';
|
||||
|
||||
import { ValidateDirective } from './shared/validate.directive';
|
||||
import { ValidateDirective } from './shared';
|
||||
|
||||
@Component({
|
||||
selector: 'sg-app',
|
||||
|
|
|
@ -0,0 +1,2 @@
|
|||
export * from './shared';
|
||||
export * from './app.component';
|
|
@ -0,0 +1 @@
|
|||
export * from './validate.directive';
|
|
@ -1,6 +1,6 @@
|
|||
import { Component, OnInit } from '@angular/core';
|
||||
|
||||
import { ExceptionService } from './shared/exception.service';
|
||||
import { ExceptionService } from './shared';
|
||||
|
||||
@Component({
|
||||
selector: 'sg-app',
|
||||
|
|
|
@ -0,0 +1,2 @@
|
|||
export * from './shared';
|
||||
export * from './app.component';
|
|
@ -0,0 +1 @@
|
|||
export * from './exception.service';
|
|
@ -1,6 +1,6 @@
|
|||
import { Component } from '@angular/core';
|
||||
|
||||
import { HEROES_URL, VILLAINS_URL } from './shared/data.service';
|
||||
import { HEROES_URL, VILLAINS_URL } from './shared';
|
||||
|
||||
@Component({
|
||||
selector: 'sg-app',
|
||||
|
|
|
@ -0,0 +1,2 @@
|
|||
export * from './shared';
|
||||
export * from './app.component';
|
|
@ -0,0 +1 @@
|
|||
export * from './data.service';
|
|
@ -1,7 +1,6 @@
|
|||
import { Component, OnInit } from '@angular/core';
|
||||
|
||||
import { HeroCollectorService } from './shared/hero-collector.service';
|
||||
import { Hero } from './shared/hero.model';
|
||||
import { Hero, HeroCollectorService } from './shared';
|
||||
|
||||
@Component({
|
||||
selector: 'sg-app',
|
||||
|
|
|
@ -0,0 +1,2 @@
|
|||
export * from './shared';
|
||||
export * from './app.component';
|
|
@ -0,0 +1,2 @@
|
|||
export * from './hero-collector.service';
|
||||
export * from './hero.model';
|
|
@ -1,6 +1,6 @@
|
|||
import { Component, OnInit } from '@angular/core';
|
||||
|
||||
import { ToastService } from './shared/toast.service';
|
||||
import { ToastService } from './shared';
|
||||
|
||||
@Component({
|
||||
selector: 'sg-app',
|
||||
|
|
|
@ -0,0 +1,2 @@
|
|||
export * from './shared';
|
||||
export * from './app.component';
|
|
@ -0,0 +1 @@
|
|||
export * from './toast.service';
|
|
@ -0,0 +1 @@
|
|||
export * from './shared';
|
|
@ -0,0 +1,2 @@
|
|||
export * from './hero.model';
|
||||
export * from './hero.service';
|
|
@ -1,8 +1,7 @@
|
|||
import { Component, OnInit } from '@angular/core';
|
||||
|
||||
import { HeroService } from './+heroes/shared/hero.service';
|
||||
import { Hero, HeroService } from './+heroes';
|
||||
import { ExceptionService, SpinnerService, ToastService } from './shared';
|
||||
import { Hero } from './+heroes/shared/hero.model';
|
||||
|
||||
@Component({
|
||||
moduleId: module.id,
|
||||
|
|
|
@ -0,0 +1,3 @@
|
|||
export * from './+heroes';
|
||||
export * from './shared';
|
||||
export * from './app.component';
|
|
@ -0,0 +1 @@
|
|||
export * from './shared';
|
|
@ -0,0 +1,2 @@
|
|||
export * from './hero.model';
|
||||
export * from './hero.service';
|
|
@ -1,8 +1,7 @@
|
|||
import { Component, OnInit } from '@angular/core';
|
||||
|
||||
import { HeroService } from './+heroes/shared/hero.service';
|
||||
import { Hero, HeroService } from './+heroes';
|
||||
import { ExceptionService, SpinnerService, ToastService } from './shared';
|
||||
import { Hero } from './+heroes/shared/hero.model';
|
||||
|
||||
@Component({
|
||||
moduleId: module.id,
|
||||
|
|
|
@ -0,0 +1,3 @@
|
|||
export * from './+heroes';
|
||||
export * from './shared';
|
||||
export * from './app.component';
|
|
@ -2,7 +2,7 @@
|
|||
import { Component } from '@angular/core';
|
||||
|
||||
// #docregion example
|
||||
import { HeroesComponent } from './+heroes/index';
|
||||
import { HeroesComponent } from './+heroes';
|
||||
// #enddocregion example
|
||||
|
||||
@Component({
|
||||
|
|
|
@ -0,0 +1,3 @@
|
|||
export * from './+heroes';
|
||||
export * from './shared';
|
||||
export * from './app.component';
|
|
@ -1,9 +1,9 @@
|
|||
// #docregion
|
||||
import { Component, OnInit } from '@angular/core';
|
||||
|
||||
import { Hero } from './shared/hero.model';
|
||||
import { Hero } from './shared';
|
||||
// #docregion example
|
||||
import { Logger } from '../shared/logger.service';
|
||||
import { Logger } from '../shared';
|
||||
// #enddocregion example
|
||||
|
||||
@Component({
|
|
@ -0,0 +1,2 @@
|
|||
export * from './shared';
|
||||
export * from './heroes.component';
|
|
@ -0,0 +1 @@
|
|||
export * from './hero.model';
|
|
@ -1,6 +1,6 @@
|
|||
import { Component } from '@angular/core';
|
||||
|
||||
import { HeroesComponent } from './heroes/heroes.component';
|
||||
import { HeroesComponent } from './+heroes';
|
||||
|
||||
@Component({
|
||||
selector: 'sg-app',
|
||||
|
|
|
@ -0,0 +1,3 @@
|
|||
export * from './+heroes';
|
||||
export * from './shared';
|
||||
export * from './app.component';
|
|
@ -0,0 +1 @@
|
|||
export * from './logger.service';
|
|
@ -1,6 +1,6 @@
|
|||
import { Component } from '@angular/core';
|
||||
|
||||
import { HeroButtonComponent } from './heroes/shared/hero-button/hero-button.component';
|
||||
import { HeroButtonComponent } from './heroes';
|
||||
|
||||
@Component({
|
||||
moduleId: module.id,
|
||||
|
|
|
@ -0,0 +1 @@
|
|||
export * from './shared';
|
|
@ -0,0 +1 @@
|
|||
export * from './hero-button.component';
|
|
@ -0,0 +1 @@
|
|||
export * from './hero-button';
|
|
@ -0,0 +1,2 @@
|
|||
export * from './heroes';
|
||||
export * from './app.component';
|
|
@ -1,6 +1,6 @@
|
|||
import { Component } from '@angular/core';
|
||||
|
||||
import { HeroButtonComponent } from './heroes/shared/hero-button/hero-button.component';
|
||||
import { HeroButtonComponent } from './heroes';
|
||||
|
||||
@Component({
|
||||
moduleId: module.id,
|
||||
|
|
|
@ -0,0 +1 @@
|
|||
export * from './shared';
|
|
@ -0,0 +1 @@
|
|||
export * from './hero-button.component';
|
|
@ -0,0 +1 @@
|
|||
export * from './hero-button';
|
|
@ -0,0 +1,2 @@
|
|||
export * from './heroes';
|
||||
export * from './app.component';
|
|
@ -1,6 +1,6 @@
|
|||
import { Component } from '@angular/core';
|
||||
|
||||
import { HeroesComponent } from './heroes/heroes.component';
|
||||
import { HeroesComponent } from './heroes';
|
||||
|
||||
@Component({
|
||||
selector: 'sg-app',
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
// #docregion
|
||||
import { Component, OnInit } from '@angular/core';
|
||||
|
||||
import { Hero } from './shared/hero.model';
|
||||
import { Hero } from './shared';
|
||||
|
||||
// #docregion example
|
||||
@Component({
|
||||
|
|
|
@ -0,0 +1,2 @@
|
|||
export * from './shared';
|
||||
export * from './heroes.component';
|
|
@ -0,0 +1 @@
|
|||
export * from './hero.model';
|
|
@ -0,0 +1,2 @@
|
|||
export * from './heroes';
|
||||
export * from './app.component';
|
|
@ -1,6 +1,6 @@
|
|||
import { Component } from '@angular/core';
|
||||
|
||||
import { HeroButtonComponent } from './heroes/shared/hero-button/hero-button.component';
|
||||
import { HeroButtonComponent } from './heroes';
|
||||
|
||||
@Component({
|
||||
selector: 'sg-app',
|
||||
|
|
|
@ -0,0 +1 @@
|
|||
export * from './shared';
|
|
@ -0,0 +1 @@
|
|||
export * from './hero-button.component';
|
|
@ -0,0 +1 @@
|
|||
export * from './hero-button';
|
|
@ -0,0 +1,2 @@
|
|||
export * from './heroes';
|
||||
export * from './app.component';
|
|
@ -1,6 +1,6 @@
|
|||
import { Component } from '@angular/core';
|
||||
|
||||
import { HeroButtonComponent } from './heroes/shared/hero-button/hero-button.component';
|
||||
import { HeroButtonComponent } from './heroes';
|
||||
|
||||
@Component({
|
||||
moduleId: module.id,
|
||||
|
|
|
@ -0,0 +1 @@
|
|||
export * from './shared';
|
|
@ -0,0 +1 @@
|
|||
export * from './hero-button.component';
|
|
@ -0,0 +1 @@
|
|||
export * from './hero-button';
|
|
@ -0,0 +1,2 @@
|
|||
export * from './heroes';
|
||||
export * from './app.component';
|
|
@ -1,6 +1,6 @@
|
|||
import { Component } from '@angular/core';
|
||||
|
||||
import { ToastComponent } from './shared/toast/toast.component';
|
||||
import { ToastComponent } from './shared';
|
||||
|
||||
@Component({
|
||||
selector: 'sg-app',
|
||||
|
|
|
@ -0,0 +1,2 @@
|
|||
export * from './shared';
|
||||
export * from './app.component';
|
|
@ -0,0 +1 @@
|
|||
export * from './toast';
|
|
@ -0,0 +1 @@
|
|||
export * from './toast.component';
|
|
@ -1,7 +1,6 @@
|
|||
import { Component } from '@angular/core';
|
||||
|
||||
import { HeroListComponent } from './heroes/hero-list/hero-list.component';
|
||||
import { HeroService } from './heroes/shared';
|
||||
import { HeroListComponent, HeroService } from './heroes';
|
||||
|
||||
@Component({
|
||||
selector: 'sg-app',
|
||||
|
|
|
@ -0,0 +1 @@
|
|||
export * from './hero-list.component';
|
|
@ -0,0 +1,2 @@
|
|||
export * from './hero-list';
|
||||
export * from './shared';
|
|
@ -0,0 +1,2 @@
|
|||
export * from './heroes';
|
||||
export * from './app.component';
|
|
@ -1,6 +1,6 @@
|
|||
import { Component } from '@angular/core';
|
||||
|
||||
import { HeroComponent } from './heroes/hero.component';
|
||||
import { HeroComponent } from './heroes';
|
||||
|
||||
@Component({
|
||||
moduleId: module.id,
|
||||
|
|
|
@ -0,0 +1 @@
|
|||
export * from './hero.component';
|
|
@ -0,0 +1,2 @@
|
|||
export * from './heroes';
|
||||
export * from './app.component';
|
|
@ -1,6 +1,6 @@
|
|||
import { Component } from '@angular/core';
|
||||
|
||||
import { HeroListComponent } from './heroes/hero-list/hero-list.component';
|
||||
import { HeroListComponent } from './heroes';
|
||||
|
||||
@Component({
|
||||
selector: 'sg-app',
|
||||
|
|
|
@ -0,0 +1 @@
|
|||
export * from './hero-list.component';
|
|
@ -0,0 +1,2 @@
|
|||
export * from './hero-list';
|
||||
export * from './shared';
|
|
@ -0,0 +1 @@
|
|||
export * from './hero.model';
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue