Compare commits
48 Commits
Author | SHA1 | Date | |
---|---|---|---|
14a2d1a6f7 | |||
61e089931f | |||
cbf30cb101 | |||
2f41b52e78 | |||
dcf60da16d | |||
9c9f409364 | |||
b44b983c1f | |||
978f80985c | |||
c10e50cf38 | |||
168a2eb5bf | |||
c9c7acd484 | |||
5b99533315 | |||
037805b741 | |||
0861fda69c | |||
feae7b6059 | |||
e4277a0869 | |||
1864ccb3dd | |||
6b79ab5abe | |||
53c12a84dc | |||
ca665303f4 | |||
0fe4985756 | |||
74087cb39d | |||
902bb2f026 | |||
23bf34853c | |||
8c4b963927 | |||
bfa4f70204 | |||
d481f6d150 | |||
fd6114561b | |||
c82851172e | |||
75478b2078 | |||
cdbb3dbd2a | |||
e72124c888 | |||
b8c0a97e35 | |||
5597fd3180 | |||
a88413f871 | |||
aa116524e6 | |||
4a5ad7ba30 | |||
d74e4d0633 | |||
a2c2b87aa3 | |||
8f4ea3e4b8 | |||
bf25e94f19 | |||
7983414e6a | |||
8248eba3e2 | |||
a65487528f | |||
426b3a19b7 | |||
2360676a7b | |||
ce3e03ff1a | |||
858c11cf7b |
@ -32,7 +32,7 @@ env:
|
|||||||
global:
|
global:
|
||||||
# GITHUB_TOKEN_ANGULAR=<github token, a personal access token of the angular-builds account, account access in valentine>
|
# GITHUB_TOKEN_ANGULAR=<github token, a personal access token of the angular-builds account, account access in valentine>
|
||||||
# This is needed for the e2e Travis matrix task to publish packages to github for continuous packages delivery.
|
# This is needed for the e2e Travis matrix task to publish packages to github for continuous packages delivery.
|
||||||
- secure: "aCdHveZuY8AT4Jr1JoJB4LxZsnGWRe/KseZh1YXYe5UtufFCtTVHvUcLn0j2aLBF0KpdyS+hWf0i4np9jthKu2xPKriefoPgCMpisYeC0MFkwbmv+XlgkUbgkgVZMGiVyX7DCYXVahxIoOUjVMEDCbNiHTIrfEuyq24U3ok2tHc="
|
- secure: "rNqXoy2gqjbF5tBXlRBy+oiYntO3BtzcxZuEtlLMzNaTNzC4dyMOFub0GkzIPWwOzkARoEU9Kv+bC97fDVbCBUKeyzzEqxqddUKhzRxeaYjsefJ6XeTvBvDxwo7wDwyxZSuWdBeGAe4eARVHm7ypsd+AlvqxtzjyS27TK2BzdL4="
|
||||||
# FIREBASE_TOKEN
|
# FIREBASE_TOKEN
|
||||||
# This is needed for publishing builds to the "aio-staging" firebase site.
|
# This is needed for publishing builds to the "aio-staging" firebase site.
|
||||||
# TODO(i): the token was generated using the iminar@google account, we should switch to a shared/role-base account.
|
# TODO(i): the token was generated using the iminar@google account, we should switch to a shared/role-base account.
|
||||||
@ -48,14 +48,12 @@ env:
|
|||||||
- CI_MODE=browserstack_optional
|
- CI_MODE=browserstack_optional
|
||||||
- CI_MODE=docs_test
|
- CI_MODE=docs_test
|
||||||
- CI_MODE=aio
|
- CI_MODE=aio
|
||||||
- CI_MODE=aio_e2e
|
|
||||||
|
|
||||||
matrix:
|
matrix:
|
||||||
fast_finish: true
|
fast_finish: true
|
||||||
allow_failures:
|
allow_failures:
|
||||||
- env: "CI_MODE=saucelabs_optional"
|
- env: "CI_MODE=saucelabs_optional"
|
||||||
- env: "CI_MODE=browserstack_optional"
|
- env: "CI_MODE=browserstack_optional"
|
||||||
- env: "CI_MODE=aio_e2e"
|
|
||||||
|
|
||||||
before_install:
|
before_install:
|
||||||
# source the env.sh script so that the exported variables are available to other scripts later on
|
# source the env.sh script so that the exported variables are available to other scripts later on
|
||||||
|
218
CHANGELOG.md
218
CHANGELOG.md
@ -1,211 +1,3 @@
|
|||||||
<a name="4.1.3"></a>
|
|
||||||
## [4.1.3](https://github.com/angular/angular/compare/4.1.2...4.1.3) (2017-05-17)
|
|
||||||
|
|
||||||
|
|
||||||
### Bug Fixes
|
|
||||||
|
|
||||||
* add typescript 2.3.2 typings test ([#16738](https://github.com/angular/angular/issues/16738)) ([a5bdbed](https://github.com/angular/angular/commit/a5bdbed)), closes [#16663](https://github.com/angular/angular/issues/16663)
|
|
||||||
* **compiler-cli:** import routing module with forRoot ([#16438](https://github.com/angular/angular/issues/16438)) ([b7f8581](https://github.com/angular/angular/commit/b7f8581))
|
|
||||||
* **platform-server:** wait for async app initializers to complete before removing server side styles ([#16712](https://github.com/angular/angular/issues/16712)) ([0a82f7d](https://github.com/angular/angular/commit/0a82f7d)), closes [#15716](https://github.com/angular/angular/issues/15716)
|
|
||||||
* **router:** Wrap Promise-like instances in native Promises ([#16759](https://github.com/angular/angular/issues/16759)) ([883ca28](https://github.com/angular/angular/commit/883ca28))
|
|
||||||
* **upgrade:** Prevent renaming of $inject property ([#16706](https://github.com/angular/angular/issues/16706)) ([afb7540](https://github.com/angular/angular/commit/afb7540))
|
|
||||||
* **upgrade:** use quote to prevent ClossureCompiler obfuscating $event. ([#16724](https://github.com/angular/angular/issues/16724)) ([47df3d6](https://github.com/angular/angular/commit/47df3d6))
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<a name="4.1.2"></a>
|
|
||||||
## [4.1.2](https://github.com/angular/angular/compare/4.1.1...4.1.2) (2017-05-10)
|
|
||||||
|
|
||||||
|
|
||||||
### Bug Fixes
|
|
||||||
|
|
||||||
* **compiler:** avoid a `...null` spread in extraction ([#16547](https://github.com/angular/angular/issues/16547)) ([d0e1688](https://github.com/angular/angular/commit/d0e1688))
|
|
||||||
* **core:** detach projected views when a parent view is destroyed ([#16592](https://github.com/angular/angular/issues/16592)) ([ee6705a](https://github.com/angular/angular/commit/ee6705a)), closes [#15578](https://github.com/angular/angular/issues/15578)
|
|
||||||
* **core:** projected views should be dirty checked when the declaring component is dirty checked. ([#16592](https://github.com/angular/angular/issues/16592)) ([9218812](https://github.com/angular/angular/commit/9218812)), closes [#14321](https://github.com/angular/angular/issues/14321)
|
|
||||||
* **http:** flatten metadata for [@angular](https://github.com/angular)/http/testing ([9c70a3c](https://github.com/angular/angular/commit/9c70a3c)), closes [#15521](https://github.com/angular/angular/issues/15521)
|
|
||||||
* **http:** honor RequestArgs.search and RequestArgs.params map type ([63066f7](https://github.com/angular/angular/commit/63066f7)), closes [#15761](https://github.com/angular/angular/issues/15761) [#16392](https://github.com/angular/angular/issues/16392)
|
|
||||||
* **http:** introduce encodingHint for text() for better ArrayBuffer support ([ec3b6e9](https://github.com/angular/angular/commit/ec3b6e9)), closes [#15932](https://github.com/angular/angular/issues/15932) [#16420](https://github.com/angular/angular/issues/16420)
|
|
||||||
* **router:** fix redirect to a URL with a param having multiple values ([#16376](https://github.com/angular/angular/issues/16376)) ([915eae5](https://github.com/angular/angular/commit/915eae5)), closes [#16310](https://github.com/angular/angular/issues/16310)
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<a name="4.1.1"></a>
|
|
||||||
## [4.1.1](https://github.com/angular/angular/compare/4.1.0...4.1.1) (2017-05-04)
|
|
||||||
|
|
||||||
|
|
||||||
### Bug Fixes
|
|
||||||
|
|
||||||
* **core**: strictNullCheck support. ([#16389](https://github.com/angular/angular/issues/16389)) ([#16389](https://github.com/angular/angular/issues/16389)) ([427d63a](https://github.com/angular/angular/commit/427d63a)), closes [#16357](https://github.com/angular/angular/issues/16357)
|
|
||||||
* **core:** allow directives to inject the component’s `ChangeDetectorRef`. ([#16394](https://github.com/angular/angular/issues/16394)) ([f66e59e](https://github.com/angular/angular/commit/f66e59e)), closes [#12816](https://github.com/angular/angular/issues/12816)
|
|
||||||
* **core:** allow to detach `OnPush` components ([#16394](https://github.com/angular/angular/issues/16394)) ([acf83b9](https://github.com/angular/angular/commit/acf83b9)), closes [#9720](https://github.com/angular/angular/issues/9720)
|
|
||||||
* **core:** don’t set `ng-version` for dynamically created components ([#16394](https://github.com/angular/angular/issues/16394)) ([85a1b54](https://github.com/angular/angular/commit/85a1b54)), closes [#15880](https://github.com/angular/angular/issues/15880)
|
|
||||||
* **core:** don’t stop change detection because of errors ([07cef36](https://github.com/angular/angular/commit/07cef36)), closes [#9531](https://github.com/angular/angular/issues/9531) [#2413](https://github.com/angular/angular/issues/2413) [#15925](https://github.com/angular/angular/issues/15925)
|
|
||||||
* **language-service:** remove asserts for non-null expressions ([#16422](https://github.com/angular/angular/issues/16422)) ([c060110](https://github.com/angular/angular/commit/c060110))
|
|
||||||
* **upgrade:** initialize all inputs in time for `ngOnChanges()` ([dd4e501](https://github.com/angular/angular/commit/dd4e501)), closes [#16212](https://github.com/angular/angular/issues/16212)
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<a name="4.1.0"></a>
|
|
||||||
# [4.1.0](https://github.com/angular/angular/compare/4.1.0-rc.0...4.1.0) (2017-04-26)
|
|
||||||
|
|
||||||
|
|
||||||
### Bug Fixes
|
|
||||||
|
|
||||||
* **aio:** AppComponent should scroll only once when location changes ([ac5e6ba](https://github.com/angular/angular/commit/ac5e6ba))
|
|
||||||
* **aio:** copy button placement fix ([23e6502](https://github.com/angular/angular/commit/23e6502))
|
|
||||||
* **aio:** fix URL redirection for API pages ([54e587a](https://github.com/angular/angular/commit/54e587a))
|
|
||||||
* **aio:** header anchor placement ([b0c5d21](https://github.com/angular/angular/commit/b0c5d21))
|
|
||||||
* **aio:** resource nav ([35a2dfc](https://github.com/angular/angular/commit/35a2dfc))
|
|
||||||
* **aio:** strip leading slashes from path (and improve DRY-ness) ([#16238](https://github.com/angular/angular/issues/16238)) ([9c1318d](https://github.com/angular/angular/commit/9c1318d)), closes [#16230](https://github.com/angular/angular/issues/16230)
|
|
||||||
* **aio:** use SVG icons for page load sensitive UI ([c3fa880](https://github.com/angular/angular/commit/c3fa880)), closes [#16100](https://github.com/angular/angular/issues/16100)
|
|
||||||
* **router:** forward the query parameters in the ng1 -> ng2 url sync ([#16249](https://github.com/angular/angular/issues/16249)) ([2f97731](https://github.com/angular/angular/commit/2f97731)), closes [#16067](https://github.com/angular/angular/issues/16067)
|
|
||||||
* **upgrade:** use correct attribute name for upgraded component's bindings ([#16128](https://github.com/angular/angular/issues/16128)) ([d1fb066](https://github.com/angular/angular/commit/d1fb066)), closes [#8856](https://github.com/angular/angular/issues/8856)
|
|
||||||
|
|
||||||
|
|
||||||
### Features
|
|
||||||
|
|
||||||
* **aio:** api page column layout ([64ef69f](https://github.com/angular/angular/commit/64ef69f))
|
|
||||||
* **aio:** api page styles ([cf034f7](https://github.com/angular/angular/commit/cf034f7))
|
|
||||||
* **aio:** api pages styling ([bb52e22](https://github.com/angular/angular/commit/bb52e22))
|
|
||||||
* **aio:** boilerplate:add cleans (removes) before adding ([d8e2829](https://github.com/angular/angular/commit/d8e2829))
|
|
||||||
* **aio:** copy code snackbar and design updates ([e7c37d7](https://github.com/angular/angular/commit/e7c37d7))
|
|
||||||
* **aio:** don't animate sidenav on launch. ([11b2f62](https://github.com/angular/angular/commit/11b2f62))
|
|
||||||
* **aio:** dont set query params during search [#16125](https://github.com/angular/angular/issues/16125) ([#16217](https://github.com/angular/angular/issues/16217)) ([7520ddc](https://github.com/angular/angular/commit/7520ddc))
|
|
||||||
* **aio:** layout max width and design cleanup ([710b4a3](https://github.com/angular/angular/commit/710b4a3))
|
|
||||||
|
|
||||||
|
|
||||||
### Performance Improvements
|
|
||||||
|
|
||||||
* **aio:** improve unit test rebuild time ([d7719aa](https://github.com/angular/angular/commit/d7719aa))
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<a name="4.1.0-rc.0"></a>
|
|
||||||
# [4.1.0-rc.0](https://github.com/angular/angular/compare/4.1.0-beta.0...4.1.0-rc.0) (2017-04-21)
|
|
||||||
|
|
||||||
|
|
||||||
### Bug Fixes
|
|
||||||
|
|
||||||
* **benchpress:** chrome - prevent trace buffer overflow ([2f44206](https://github.com/angular/angular/commit/2f44206))
|
|
||||||
* **benchpress:** Update types for TypeScript nullability support ([14669f2](https://github.com/angular/angular/commit/14669f2))
|
|
||||||
* **common:** Update types for TypeScript nullability support ([d8b73e4](https://github.com/angular/angular/commit/d8b73e4))
|
|
||||||
* **compiler:** fix build error in xliff2 ([bd704c9](https://github.com/angular/angular/commit/bd704c9))
|
|
||||||
* **compiler:** fix inheritance for AOT with summaries ([#15583](https://github.com/angular/angular/issues/15583)) ([8ef621a](https://github.com/angular/angular/commit/8ef621a))
|
|
||||||
* **compiler:** ignore calls to unresolved symbols in metadata ([38a7e0d](https://github.com/angular/angular/commit/38a7e0d)), closes [#15969](https://github.com/angular/angular/issues/15969)
|
|
||||||
* **compiler:** ignore calls to unresolved symbols in metadata ([#15970](https://github.com/angular/angular/issues/15970)) ([ce47d33](https://github.com/angular/angular/commit/ce47d33)), closes [#15969](https://github.com/angular/angular/issues/15969)
|
|
||||||
* **compiler:** Inform user where Quoted error was thrown ([a77b126](https://github.com/angular/angular/commit/a77b126))
|
|
||||||
* **compiler:** make I18NHtmlParser provider AoT-compliant ([#15980](https://github.com/angular/angular/issues/15980)) ([745731e](https://github.com/angular/angular/commit/745731e))
|
|
||||||
* **compiler:** support `<ng-container>` whatever the namespace ([5b141fb](https://github.com/angular/angular/commit/5b141fb)), closes [#14257](https://github.com/angular/angular/issues/14257)
|
|
||||||
* **compiler:** suppress another closure warning ([#16137](https://github.com/angular/angular/issues/16137)) ([11b0213](https://github.com/angular/angular/commit/11b0213))
|
|
||||||
* **compiler:** Update types for TypeScript nullability support ([09d9f5f](https://github.com/angular/angular/commit/09d9f5f))
|
|
||||||
* **core:** benchmarks - enable ng1 benchmark again ([bccfaa4](https://github.com/angular/angular/commit/bccfaa4))
|
|
||||||
* **core:** distribute externs for testability API ([#16179](https://github.com/angular/angular/issues/16179)) ([da66884](https://github.com/angular/angular/commit/da66884))
|
|
||||||
* **core:** key-value differ changes iteration ([#15968](https://github.com/angular/angular/issues/15968)) ([cb5a7ef](https://github.com/angular/angular/commit/cb5a7ef)), closes [#14997](https://github.com/angular/angular/issues/14997)
|
|
||||||
* **forms:** Update types for TypeScript nullability support ([6649743](https://github.com/angular/angular/commit/6649743))
|
|
||||||
* **forms:** Update types for TypeScript nullability support ([57bc245](https://github.com/angular/angular/commit/57bc245))
|
|
||||||
* **forms:** Update types for TypeScript nullability support ([#15859](https://github.com/angular/angular/issues/15859)) ([6a2e08d](https://github.com/angular/angular/commit/6a2e08d))
|
|
||||||
* **http:** Update types for TypeScript nullability support ([c36ec9b](https://github.com/angular/angular/commit/c36ec9b))
|
|
||||||
* **http:** Update types for TypeScript nullability support ([ec028b8](https://github.com/angular/angular/commit/ec028b8))
|
|
||||||
* **language-service:** avoid throwing exceptions when reporting metadata errors ([7764c5c](https://github.com/angular/angular/commit/7764c5c))
|
|
||||||
* **language-service:** detect when there isn't a tsconfig.json ([258d539](https://github.com/angular/angular/commit/258d539)), closes [#15874](https://github.com/angular/angular/issues/15874)
|
|
||||||
* **language-service:** improve resilience to incomplete information ([71a8627](https://github.com/angular/angular/commit/71a8627))
|
|
||||||
* **language-service:** infer correct type of `?.` expressions ([0a3a9af](https://github.com/angular/angular/commit/0a3a9af)), closes [#15885](https://github.com/angular/angular/issues/15885)
|
|
||||||
* **language-service:** initialize static reflector correctly ([fe0d02f](https://github.com/angular/angular/commit/fe0d02f)), closes [#15768](https://github.com/angular/angular/issues/15768)
|
|
||||||
* **language-service:** look for type constructors on canonical symbol ([2ddf3bc](https://github.com/angular/angular/commit/2ddf3bc))
|
|
||||||
* **language-service:** only use canonical symbols ([5a88d2f](https://github.com/angular/angular/commit/5a88d2f))
|
|
||||||
* **language-service:** parse extended i18n forms ([bde9771](https://github.com/angular/angular/commit/bde9771))
|
|
||||||
* **language-service:** resolve any parameter types to any result ([5fbb0d0](https://github.com/angular/angular/commit/5fbb0d0))
|
|
||||||
* **language-service:** respect baseUrl compiler option ([f21ff90](https://github.com/angular/angular/commit/f21ff90)), closes [#15974](https://github.com/angular/angular/issues/15974)
|
|
||||||
* **language-service:** Update types for TypeScript nullability support ([540581d](https://github.com/angular/angular/commit/540581d))
|
|
||||||
* **packaging:** increased buffer size ([#15840](https://github.com/angular/angular/issues/15840)) ([65af964](https://github.com/angular/angular/commit/65af964))
|
|
||||||
* **platform-browser:** Update types for TypeScript nullability support ([728c9d0](https://github.com/angular/angular/commit/728c9d0)), closes [#15898](https://github.com/angular/angular/issues/15898)
|
|
||||||
* **platform-server:** handle innerText ([#15818](https://github.com/angular/angular/issues/15818)) ([9394835](https://github.com/angular/angular/commit/9394835))
|
|
||||||
* **router:** fix query param parsing ([a487563](https://github.com/angular/angular/commit/a487563))
|
|
||||||
* **router:** prevent `RouterLinkActive` from causing an infinite CD loop ([82417b3](https://github.com/angular/angular/commit/82417b3)), closes [#15825](https://github.com/angular/angular/issues/15825)
|
|
||||||
* **router:** relax nullability requirements ([a0d124b](https://github.com/angular/angular/commit/a0d124b))
|
|
||||||
* turn on nullability in the code base. ([5293794](https://github.com/angular/angular/commit/5293794))
|
|
||||||
* Update types for TypeScript nullability support in examples ([6f5fccf](https://github.com/angular/angular/commit/6f5fccf))
|
|
||||||
* **router:** the preloader use the module from the loaded config ([6d12aa9](https://github.com/angular/angular/commit/6d12aa9))
|
|
||||||
* **router:** Update types for TypeScript nullability support ([56c46d7](https://github.com/angular/angular/commit/56c46d7))
|
|
||||||
* **router:** Update types for TypeScript nullability support ([bc43188](https://github.com/angular/angular/commit/bc43188))
|
|
||||||
* **tsc-wrapped:** collect new expressions with no arguments ([#15908](https://github.com/angular/angular/issues/15908)) ([70b1d6d](https://github.com/angular/angular/commit/70b1d6d)), closes [#15906](https://github.com/angular/angular/issues/15906)
|
|
||||||
* **tsc-wrapped:** ensure valid path separators in metadata ([96aa236](https://github.com/angular/angular/commit/96aa236))
|
|
||||||
* **upgrade:** Update types for TypeScript nullability support ([01d93f3](https://github.com/angular/angular/commit/01d93f3)), closes [#15897](https://github.com/angular/angular/issues/15897)
|
|
||||||
|
|
||||||
|
|
||||||
### Features
|
|
||||||
|
|
||||||
* **animations:** Update types for TypeScript nullability support ([38d75d4](https://github.com/angular/angular/commit/38d75d4)), closes [#15870](https://github.com/angular/angular/issues/15870)
|
|
||||||
* **compiler:** add source files to xmb/xliff translations ([#14705](https://github.com/angular/angular/issues/14705)) ([4054055](https://github.com/angular/angular/commit/4054055)), closes [#14190](https://github.com/angular/angular/issues/14190)
|
|
||||||
* **compiler:** Implement i18n XLIFF 2.0 serializer ([#14185](https://github.com/angular/angular/issues/14185)) ([09c4cb2](https://github.com/angular/angular/commit/09c4cb2)), closes [#11735](https://github.com/angular/angular/issues/11735)
|
|
||||||
* **upgrade:** allow setting the angularjs lib at runtime ([#15168](https://github.com/angular/angular/issues/15168)) ([e927aea](https://github.com/angular/angular/commit/e927aea))
|
|
||||||
* **upgrade:** allow setting the angularjs lib at runtime ([#15168](https://github.com/angular/angular/issues/15168)) ([8ad464d](https://github.com/angular/angular/commit/8ad464d))
|
|
||||||
* **upgrade:** fixes for allow setting the angularjs lib at runtime ([90814e4](https://github.com/angular/angular/commit/90814e4))
|
|
||||||
* add support for TS 2.2 ([3c8a61e](https://github.com/angular/angular/commit/3c8a61e))
|
|
||||||
* add support for TS 2.3 ([014594f](https://github.com/angular/angular/commit/014594f))
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<a name="4.0.3"></a>
|
|
||||||
## [4.0.3](https://github.com/angular/angular/compare/4.0.2...4.0.3) (2017-04-21)
|
|
||||||
|
|
||||||
|
|
||||||
### Bug Fixes
|
|
||||||
|
|
||||||
* **benchpress:** chrome - prevent trace buffer overflow ([d216f94](https://github.com/angular/angular/commit/d216f94))
|
|
||||||
* **compiler:** fix build error in xliff2 ([1870347](https://github.com/angular/angular/commit/1870347))
|
|
||||||
* **compiler:** ignore calls to unresolved symbols in metadata ([d4038ab](https://github.com/angular/angular/commit/d4038ab)), closes [#15969](https://github.com/angular/angular/issues/15969)
|
|
||||||
* **compiler:** ignore calls to unresolved symbols in metadata ([#15970](https://github.com/angular/angular/issues/15970)) ([db25f08](https://github.com/angular/angular/commit/db25f08)), closes [#15969](https://github.com/angular/angular/issues/15969)
|
|
||||||
* **compiler:** Inform user where Quoted error was thrown ([3184cc5](https://github.com/angular/angular/commit/3184cc5))
|
|
||||||
* **compiler:** suppress another closure warning ([#16137](https://github.com/angular/angular/issues/16137)) ([72e240a](https://github.com/angular/angular/commit/72e240a))
|
|
||||||
* **core:** benchmarks - enable ng1 benchmark again ([ccac4c6](https://github.com/angular/angular/commit/ccac4c6))
|
|
||||||
* **core:** distribute externs for testability API ([#16179](https://github.com/angular/angular/issues/16179)) ([e377d9d](https://github.com/angular/angular/commit/e377d9d))
|
|
||||||
* **core:** key-value differ changes iteration ([#15968](https://github.com/angular/angular/issues/15968)) ([a8600dc](https://github.com/angular/angular/commit/a8600dc)), closes [#14997](https://github.com/angular/angular/issues/14997)
|
|
||||||
* **language-service:** only use canonical symbols ([786093a](https://github.com/angular/angular/commit/786093a))
|
|
||||||
* **packaging:** increased buffer size ([#15840](https://github.com/angular/angular/issues/15840)) ([88ad490](https://github.com/angular/angular/commit/88ad490))
|
|
||||||
* **platform-server:** handle innerText ([#15818](https://github.com/angular/angular/issues/15818)) ([7de340d](https://github.com/angular/angular/commit/7de340d))
|
|
||||||
* **router:** prevent `RouterLinkActive` from causing an infinite CD loop ([4479c42](https://github.com/angular/angular/commit/4479c42)), closes [#15825](https://github.com/angular/angular/issues/15825)
|
|
||||||
* **tsc-wrapped:** collect new expressions with no arguments ([#15908](https://github.com/angular/angular/issues/15908)) ([41cac9e](https://github.com/angular/angular/commit/41cac9e)), closes [#15906](https://github.com/angular/angular/issues/15906)
|
|
||||||
|
|
||||||
|
|
||||||
### Features
|
|
||||||
|
|
||||||
* **compiler:** Implement i18n XLIFF 2.0 serializer ([#14185](https://github.com/angular/angular/issues/14185)) ([a7d8edd](https://github.com/angular/angular/commit/a7d8edd)), closes [#11735](https://github.com/angular/angular/issues/11735)
|
|
||||||
* **upgrade:** allow setting the angularjs lib at runtime ([#15168](https://github.com/angular/angular/issues/15168)) ([a75d056](https://github.com/angular/angular/commit/a75d056))
|
|
||||||
* **upgrade:** allow setting the angularjs lib at runtime ([#15168](https://github.com/angular/angular/issues/15168)) ([4f172b0](https://github.com/angular/angular/commit/4f172b0))
|
|
||||||
* **upgrade:** fixes for allow setting the angularjs lib at runtime ([bb6932d](https://github.com/angular/angular/commit/bb6932d))
|
|
||||||
* add support for TS 2.3 ([5cf101f](https://github.com/angular/angular/commit/5cf101f))
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<a name="4.1.0-beta.1"></a>
|
|
||||||
# [4.1.0-beta.1](https://github.com/angular/angular/compare/4.1.0-beta.0...4.1.0-beta.1) (2017-04-12)
|
|
||||||
|
|
||||||
|
|
||||||
### Bug Fixes
|
|
||||||
|
|
||||||
* **compiler:** fix inheritance for AOT with summaries ([#15583](https://github.com/angular/angular/issues/15583)) ([8ef621a](https://github.com/angular/angular/commit/8ef621a))
|
|
||||||
* **language-service:** avoid throwing exceptions when reporting metadata errors ([7764c5c](https://github.com/angular/angular/commit/7764c5c))
|
|
||||||
* **language-service:** detect when there isn't a tsconfig.json ([258d539](https://github.com/angular/angular/commit/258d539)), closes [#15874](https://github.com/angular/angular/issues/15874)
|
|
||||||
* **language-service:** improve resilience to incomplete information ([71a8627](https://github.com/angular/angular/commit/71a8627))
|
|
||||||
* **language-service:** initialize static reflector correctly ([fe0d02f](https://github.com/angular/angular/commit/fe0d02f)), closes [#15768](https://github.com/angular/angular/issues/15768)
|
|
||||||
* **language-service:** parse extended i18n forms ([bde9771](https://github.com/angular/angular/commit/bde9771))
|
|
||||||
* **language-service:** resolve any parameter types to any result ([5fbb0d0](https://github.com/angular/angular/commit/5fbb0d0))
|
|
||||||
* **router:** fix query param parsing ([a487563](https://github.com/angular/angular/commit/a487563))
|
|
||||||
* **router:** the preloader use the module from the loaded config ([6d12aa9](https://github.com/angular/angular/commit/6d12aa9))
|
|
||||||
* **tsc-wrapped:** ensure valid path separators in metadata ([96aa236](https://github.com/angular/angular/commit/96aa236))
|
|
||||||
|
|
||||||
|
|
||||||
### Features
|
|
||||||
|
|
||||||
* **animations:** Update types for TypeScript nullability support ([38d75d4](https://github.com/angular/angular/commit/38d75d4)), closes [#15870](https://github.com/angular/angular/issues/15870)
|
|
||||||
* **benchpress:** Update types for TypeScript nullability support ([14669f2](https://github.com/angular/angular/commit/14669f2))
|
|
||||||
* **common:** Update types for TypeScript nullability support ([d8b73e4](https://github.com/angular/angular/commit/d8b73e4))
|
|
||||||
* **compiler:** Update types for TypeScript nullability support ([09d9f5f](https://github.com/angular/angular/commit/09d9f5f))
|
|
||||||
* **language-service:** Update types for TypeScript nullability support ([540581d](https://github.com/angular/angular/commit/540581d))
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<a name="4.0.2"></a>
|
<a name="4.0.2"></a>
|
||||||
## [4.0.2](https://github.com/angular/angular/compare/4.0.1...4.0.2) (2017-04-11)
|
## [4.0.2](https://github.com/angular/angular/compare/4.0.1...4.0.2) (2017-04-11)
|
||||||
|
|
||||||
@ -225,16 +17,6 @@
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
<a name="4.1.0-beta.0"></a>
|
|
||||||
# [4.1.0-beta.0](https://github.com/angular/angular/compare/4.0.0...4.1.0-beta.0) (2017-03-29)
|
|
||||||
|
|
||||||
### Features
|
|
||||||
|
|
||||||
* **compiler:** support ICU messages in XLIFF ([b8d5f87](https://github.com/angular/angular/commit/b8d5f87)), closes [#12636](https://github.com/angular/angular/issues/12636) [#15068](https://github.com/angular/angular/issues/15068)
|
|
||||||
|
|
||||||
Note: 4.1.0-beta.0 release also contains all the changes present in the 4.0.1 release.
|
|
||||||
|
|
||||||
|
|
||||||
<a name="4.0.1"></a>
|
<a name="4.0.1"></a>
|
||||||
## [4.0.1](https://github.com/angular/angular/compare/4.0.0...4.0.1) (2017-03-29)
|
## [4.0.1](https://github.com/angular/angular/compare/4.0.0...4.0.1) (2017-03-29)
|
||||||
|
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"$schema": "./node_modules/@angular/cli/lib/config/schema.json",
|
|
||||||
"project": {
|
"project": {
|
||||||
|
"version": "1.0.0-beta.32.3",
|
||||||
"name": "site"
|
"name": "site"
|
||||||
},
|
},
|
||||||
"apps": [
|
"apps": [
|
||||||
@ -11,15 +11,13 @@
|
|||||||
"assets",
|
"assets",
|
||||||
"content",
|
"content",
|
||||||
"app/search/search-worker.js",
|
"app/search/search-worker.js",
|
||||||
"favicon.ico",
|
"favicon.ico"
|
||||||
"pwa-manifest.json"
|
|
||||||
],
|
],
|
||||||
"index": "index.html",
|
"index": "index.html",
|
||||||
"main": "main.ts",
|
"main": "main.ts",
|
||||||
"polyfills": "polyfills.ts",
|
"polyfills": "polyfills.ts",
|
||||||
"test": "test.ts",
|
"test": "test.ts",
|
||||||
"tsconfig": "tsconfig.app.json",
|
"tsconfig": "tsconfig.json",
|
||||||
"testTsconfig": "tsconfig.spec.json",
|
|
||||||
"prefix": "aio",
|
"prefix": "aio",
|
||||||
"serviceWorker": true,
|
"serviceWorker": true,
|
||||||
"styles": [
|
"styles": [
|
||||||
@ -42,13 +40,12 @@
|
|||||||
},
|
},
|
||||||
"lint": [
|
"lint": [
|
||||||
{
|
{
|
||||||
"project": "src/tsconfig.app.json"
|
"files": "src/**/*.ts",
|
||||||
|
"project": "src/tsconfig.json"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"project": "src/tsconfig.spec.json"
|
"files": "e2e/**/*.ts",
|
||||||
},
|
"project": "e2e/tsconfig.json"
|
||||||
{
|
|
||||||
"project": "e2e/tsconfig.e2e.json"
|
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"test": {
|
"test": {
|
||||||
@ -58,8 +55,19 @@
|
|||||||
},
|
},
|
||||||
"defaults": {
|
"defaults": {
|
||||||
"styleExt": "scss",
|
"styleExt": "scss",
|
||||||
"component": {
|
"component": {},
|
||||||
"inlineStyle": true
|
"prefixInterfaces": false,
|
||||||
|
"inline": {
|
||||||
|
"style": false,
|
||||||
|
"template": false
|
||||||
|
},
|
||||||
|
"spec": {
|
||||||
|
"class": false,
|
||||||
|
"component": true,
|
||||||
|
"directive": true,
|
||||||
|
"module": false,
|
||||||
|
"pipe": true,
|
||||||
|
"service": true
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
48
aio/.gitignore
vendored
48
aio/.gitignore
vendored
@ -1,45 +1,11 @@
|
|||||||
# See http://help.github.com/ignore-files/ for more about ignoring files.
|
# Ignore node_modules
|
||||||
|
node_modules
|
||||||
|
|
||||||
# compiled output
|
# Ignore npm/yarn debug log
|
||||||
/dist
|
|
||||||
/out-tsc
|
|
||||||
/src/content
|
|
||||||
/tmp
|
|
||||||
|
|
||||||
# dependencies
|
|
||||||
/node_modules
|
|
||||||
|
|
||||||
# IDEs and editors
|
|
||||||
/.idea
|
|
||||||
.project
|
|
||||||
.classpath
|
|
||||||
.c9/
|
|
||||||
*.launch
|
|
||||||
.settings/
|
|
||||||
*.sublime-workspace
|
|
||||||
|
|
||||||
# IDE - VSCode
|
|
||||||
.vscode/*
|
|
||||||
!.vscode/settings.json
|
|
||||||
!.vscode/tasks.json
|
|
||||||
!.vscode/launch.json
|
|
||||||
!.vscode/extensions.json
|
|
||||||
|
|
||||||
# misc
|
|
||||||
/.sass-cache
|
|
||||||
/connect.lock
|
|
||||||
/coverage
|
|
||||||
/libpeerconnection.log
|
|
||||||
npm-debug.log
|
npm-debug.log
|
||||||
testem.log
|
|
||||||
/typings
|
|
||||||
yarn-error.log
|
yarn-error.log
|
||||||
|
|
||||||
# e2e
|
# Ignore generated content
|
||||||
/e2e/*.js
|
/dist
|
||||||
/e2e/*.map
|
/src/content
|
||||||
protractor-results*.txt
|
/.sass-cache
|
||||||
|
|
||||||
# System Files
|
|
||||||
.DS_Store
|
|
||||||
Thumbs.db
|
|
||||||
|
@ -1,92 +1,31 @@
|
|||||||
# Angular documentation project (https://angular.io)
|
# Site
|
||||||
|
|
||||||
Everything in this folder is part of the documentation project. This includes
|
This project was generated with [angular-cli](https://github.com/angular/angular-cli) version 1.0.0-beta.26.
|
||||||
|
|
||||||
* the web site for displaying the documentation
|
## Development server
|
||||||
* the dgeni configuration for converting source files to rendered files that can be viewed in the web site.
|
Run `ng serve` for a dev server. Navigate to `http://localhost:4200/`. The app will automatically reload if you change any of the source files.
|
||||||
* the tooling for setting up examples for development; and generating plunkers and zip files from the examples.
|
|
||||||
|
|
||||||
## Developer tasks
|
## Code scaffolding
|
||||||
|
|
||||||
We use `yarn` to manage the dependencies and to run build tasks.
|
Run `ng generate component component-name` to generate a new component. You can also use `ng generate directive/pipe/service/class/module`.
|
||||||
You should run all these tasks from the `angular/aio` folder.
|
|
||||||
Here are the most important tasks you might need to use:
|
|
||||||
|
|
||||||
* `yarn` - install all the dependencies.
|
## Build
|
||||||
* `yarn setup` - Install all the dependencies, boilerplate, plunkers, zips and runs dgeni on the docs.
|
|
||||||
|
|
||||||
* `yarn start` - run a development web server that watches the files; then builds the doc-viewer and reloads the page, as necessary.
|
Run `ng build` to build the project. The build artifacts will be stored in the `dist/` directory. Use the `--prod` flag for a production build.
|
||||||
* `yarn lint` - check that the doc-viewer code follows our style rules.
|
|
||||||
* `yarn test` - watch all the source files, for the doc-viewer, and run all the unit tests when any change.
|
|
||||||
* `yarn e2e` - run all the e2e tests for the doc-viewer.
|
|
||||||
|
|
||||||
* `yarn docs` - generate all the docs from the source files.
|
## Running unit tests
|
||||||
* `yarn docs-watch` - watch the Angular source and the docs files and run a short-circuited doc-gen for the docs that changed.
|
|
||||||
* `yarn docs-lint` - check that the doc gen code follows our style rules.
|
|
||||||
* `yarn docs-test` - run the unit tests for the doc generation code.
|
|
||||||
|
|
||||||
* `yarn boilerplate:add` - generate all the boilerplate code for the examples, so that they can be run locally.
|
Run `ng test` to execute the unit tests via [Karma](https://karma-runner.github.io).
|
||||||
* `yarn boilerplate:remove` - remove all the boilerplate code that was added via `yarn boilerplate:add`.
|
|
||||||
* `yarn generate-plunkers` - generate the plunker files that are used by the `live-example` tags in the docs.
|
|
||||||
* `yarn generate-zips` - generate the zip files from the examples. Zip available via the `live-example` tags in the docs.
|
|
||||||
|
|
||||||
|
## Running end-to-end tests
|
||||||
|
|
||||||
## Guide to authoring
|
Run `ng e2e` to execute the end-to-end tests via [Protractor](http://www.protractortest.org/).
|
||||||
|
Before running the tests make sure you are serving the app via `ng serve`.
|
||||||
|
|
||||||
There are two types of content in the documentatation:
|
## Deploying to GitHub Pages
|
||||||
|
|
||||||
* **API docs**: descriptions of the modules, classes, interfaces, decorators, etc that make up the Angular platform.
|
Run `ng github-pages:deploy` to deploy to GitHub Pages.
|
||||||
API docs are generated directly from the source code.
|
|
||||||
The source code is contained in TypeScript files, located in the `angular/packages` folder.
|
|
||||||
Each API item may have a preceding comment, which contains JSDoc style tags and content.
|
|
||||||
The content is written in markdown.
|
|
||||||
|
|
||||||
* **Other content**: guides, tutorials, and other marketing material.
|
## Further help
|
||||||
All other content is written using markdown in text files, located in the `angular/aio/content` folder.
|
|
||||||
More specifically, there are sub-folders that contain particular types of content: guides, tutorial and marketing.
|
|
||||||
|
|
||||||
We use the [dgeni](https://github.com/angular/dgeni) tool to convert these files into docs that can be viewed in the doc-viewer.
|
To get more help on the `angular-cli` use `ng help` or go check out the [Angular-CLI README](https://github.com/angular/angular-cli/blob/master/README.md).
|
||||||
|
|
||||||
### Generating the complete docs
|
|
||||||
|
|
||||||
The main task for generating the docs is `yarn docs`. This will process all the source files (API and other),
|
|
||||||
extracting the documentation and generating JSON files that can be consumed by the doc-viewer.
|
|
||||||
|
|
||||||
### Partial doc generation for editors
|
|
||||||
|
|
||||||
Full doc generation can take up to one minute. That's too slow for efficient document creation and editing.
|
|
||||||
|
|
||||||
You can make small changes in a smart editor that displays formatted markdown:
|
|
||||||
>In VS Code, _Cmd-K, V_ opens markdown preview in side pane; _Cmd-B_ toggles left sidebar
|
|
||||||
|
|
||||||
You also want to see those changes displayed properly in the doc viewer
|
|
||||||
with a quick, edit/view cycle time.
|
|
||||||
|
|
||||||
For this purpose, use the `yarn docs-watch` task, which watches for changes to source files and only
|
|
||||||
re-processes the the files necessary to generate the docs that are related to the file that has changed.
|
|
||||||
Since this task takes shortcuts, it is much faster (often less than 1 second) but it won't produce full
|
|
||||||
fidelity content. For example, links to other docs and code examples may not render correctly. This is
|
|
||||||
most particularly noticed in links to other docs and in the embedded examples, which may not always render
|
|
||||||
correctly.
|
|
||||||
|
|
||||||
The general setup is as follows:
|
|
||||||
|
|
||||||
* Open a terminal, ensure the dependencies are installed; run an initial doc generation; then start the doc-viewer:
|
|
||||||
|
|
||||||
```bash
|
|
||||||
yarn
|
|
||||||
yarn docs
|
|
||||||
yarn start
|
|
||||||
```
|
|
||||||
|
|
||||||
* Open a second terminal and start watching the docs
|
|
||||||
|
|
||||||
```bash
|
|
||||||
yarn docs-watch
|
|
||||||
```
|
|
||||||
|
|
||||||
* Open a browser at https://localhost:4200/ and navigate to the document on which you want to work.
|
|
||||||
You can automatically open the browser by using `yarn start -- -o` in the first terminal.
|
|
||||||
|
|
||||||
* Make changes to the page's associated doc or example files. Every time a file is saved, the doc will
|
|
||||||
be regenerated, the app will rebuild and the page will reload.
|
|
||||||
|
@ -79,11 +79,6 @@ RUN apt-get update -y && apt-get install -y \
|
|||||||
RUN yarn global add pm2@2
|
RUN yarn global add pm2@2
|
||||||
|
|
||||||
|
|
||||||
# Set up log rotation
|
|
||||||
COPY logrotate/* /etc/logrotate.d/
|
|
||||||
RUN chmod 0644 /etc/logrotate.d/*
|
|
||||||
|
|
||||||
|
|
||||||
# Set up cronjobs
|
# Set up cronjobs
|
||||||
COPY cronjobs/aio-builds-cleanup /etc/cron.d/
|
COPY cronjobs/aio-builds-cleanup /etc/cron.d/
|
||||||
RUN chmod 0744 /etc/cron.d/aio-builds-cleanup
|
RUN chmod 0744 /etc/cron.d/aio-builds-cleanup
|
||||||
|
@ -1,9 +0,0 @@
|
|||||||
/var/log/aio/clean-up.log /var/log/aio/init.log /var/log/aio/verify-setup.log {
|
|
||||||
compress
|
|
||||||
create
|
|
||||||
delaycompress
|
|
||||||
missingok
|
|
||||||
monthly
|
|
||||||
notifempty
|
|
||||||
rotate 6
|
|
||||||
}
|
|
@ -1,13 +0,0 @@
|
|||||||
/var/log/aio/nginx/*.log /var/log/aio/nginx-test/*.log {
|
|
||||||
compress
|
|
||||||
create
|
|
||||||
delaycompress
|
|
||||||
missingok
|
|
||||||
monthly
|
|
||||||
notifempty
|
|
||||||
rotate 6
|
|
||||||
sharedscripts
|
|
||||||
postrotate
|
|
||||||
service nginx rotate >/dev/null 2>&1
|
|
||||||
endscript
|
|
||||||
}
|
|
@ -1,9 +0,0 @@
|
|||||||
/var/log/aio/upload-server-*.log {
|
|
||||||
compress
|
|
||||||
copytruncate
|
|
||||||
delaycompress
|
|
||||||
missingok
|
|
||||||
monthly
|
|
||||||
notifempty
|
|
||||||
rotate 6
|
|
||||||
}
|
|
@ -1,2 +1 @@
|
|||||||
/dist
|
/dist/
|
||||||
/node_modules
|
|
||||||
|
@ -26,7 +26,7 @@ export class BuildCreator extends EventEmitter {
|
|||||||
all([this.exists(prDir), this.exists(shaDir)]).
|
all([this.exists(prDir), this.exists(shaDir)]).
|
||||||
then(([prDirExisted, shaDirExisted]) => {
|
then(([prDirExisted, shaDirExisted]) => {
|
||||||
if (shaDirExisted) {
|
if (shaDirExisted) {
|
||||||
throw new UploadError(409, `Request to overwrite existing directory: ${shaDir}`);
|
throw new UploadError(403, `Request to overwrite existing directory: ${shaDir}`);
|
||||||
}
|
}
|
||||||
|
|
||||||
dirToRemoveOnError = prDirExisted ? shaDir : prDir;
|
dirToRemoveOnError = prDirExisted ? shaDir : prDir;
|
||||||
|
@ -58,7 +58,7 @@ class UploadServerFactory {
|
|||||||
const githubPullRequests = new GithubPullRequests(githubToken, repoSlug);
|
const githubPullRequests = new GithubPullRequests(githubToken, repoSlug);
|
||||||
|
|
||||||
buildCreator.on(CreatedBuildEvent.type, ({pr, sha}: CreatedBuildEvent) => {
|
buildCreator.on(CreatedBuildEvent.type, ({pr, sha}: CreatedBuildEvent) => {
|
||||||
const body = `The angular.io preview for ${sha} is available [here][1].\n\n` +
|
const body = `The angular.io preview for ${sha.slice(0, 7)} is available [here][1].\n\n` +
|
||||||
`[1]: https://pr${pr}-${sha}.${domainName}/`;
|
`[1]: https://pr${pr}-${sha}.${domainName}/`;
|
||||||
|
|
||||||
githubPullRequests.addComment(pr, body);
|
githubPullRequests.addComment(pr, body);
|
||||||
|
@ -73,7 +73,7 @@ h.runForAllSupportedSchemes((scheme, port) => describe(`integration (on ${scheme
|
|||||||
h.createDummyArchive(pr9, sha9, archivePath);
|
h.createDummyArchive(pr9, sha9, archivePath);
|
||||||
|
|
||||||
uploadBuild(pr9, sha9, archivePath).
|
uploadBuild(pr9, sha9, archivePath).
|
||||||
then(h.verifyResponse(409)).
|
then(h.verifyResponse(403)).
|
||||||
then(() => Promise.all([
|
then(() => Promise.all([
|
||||||
getFile(pr9, sha9, 'index.html').then(h.verifyResponse(200, idxContentRegex9)),
|
getFile(pr9, sha9, 'index.html').then(h.verifyResponse(200, idxContentRegex9)),
|
||||||
getFile(pr9, sha9, 'foo/bar.js').then(h.verifyResponse(200, barContentRegex9)),
|
getFile(pr9, sha9, 'foo/bar.js').then(h.verifyResponse(200, barContentRegex9)),
|
||||||
|
@ -101,7 +101,7 @@ describe('upload-server (on HTTP)', () => {
|
|||||||
expect(h.readBuildFile(pr, sha9, 'index.html')).toBe('My content');
|
expect(h.readBuildFile(pr, sha9, 'index.html')).toBe('My content');
|
||||||
|
|
||||||
h.runCmd(`${curl} http://${host}/create-build/${pr}/${sha9}`).
|
h.runCmd(`${curl} http://${host}/create-build/${pr}/${sha9}`).
|
||||||
then(h.verifyResponse(409, /^Request to overwrite existing directory/)).
|
then(h.verifyResponse(403, /^Request to overwrite existing directory/)).
|
||||||
then(() => expect(h.readBuildFile(pr, sha9, 'index.html')).toBe('My content')).
|
then(() => expect(h.readBuildFile(pr, sha9, 'index.html')).toBe('My content')).
|
||||||
then(done);
|
then(done);
|
||||||
});
|
});
|
||||||
|
@ -66,7 +66,7 @@ describe('BuildCreator', () => {
|
|||||||
it('should throw if the build does already exist', done => {
|
it('should throw if the build does already exist', done => {
|
||||||
bcExistsSpy.and.returnValue(true);
|
bcExistsSpy.and.returnValue(true);
|
||||||
bc.create(pr, sha, archive).catch(err => {
|
bc.create(pr, sha, archive).catch(err => {
|
||||||
expectToBeUploadError(err, 409, `Request to overwrite existing directory: ${shaDir}`);
|
expectToBeUploadError(err, 403, `Request to overwrite existing directory: ${shaDir}`);
|
||||||
done();
|
done();
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
@ -143,7 +143,7 @@ describe('uploadServerFactory', () => {
|
|||||||
|
|
||||||
it('should post a comment on GitHub on \'build.created\'', () => {
|
it('should post a comment on GitHub on \'build.created\'', () => {
|
||||||
const prsAddCommentSpy = spyOn(GithubPullRequests.prototype, 'addComment');
|
const prsAddCommentSpy = spyOn(GithubPullRequests.prototype, 'addComment');
|
||||||
const commentBody = 'The angular.io preview for 1234567890 is available [here][1].\n\n' +
|
const commentBody = 'The angular.io preview for 1234567 is available [here][1].\n\n' +
|
||||||
'[1]: https://pr42-1234567890.domain.name/';
|
'[1]: https://pr42-1234567890.domain.name/';
|
||||||
|
|
||||||
buildCreator.emit(CreatedBuildEvent.type, {pr: 42, sha: '1234567890'});
|
buildCreator.emit(CreatedBuildEvent.type, {pr: 42, sha: '1234567890'});
|
||||||
|
@ -67,8 +67,8 @@ More info on how to set things up on CI can be found [here](misc--integrate-with
|
|||||||
|
|
||||||
### Serving build artifacts
|
### Serving build artifacts
|
||||||
- nginx receives a request for an uploaded resource on a subdomain corresponding to the PR and SHA.
|
- nginx receives a request for an uploaded resource on a subdomain corresponding to the PR and SHA.
|
||||||
E.g.: `pr<PR>-<SHA>.ngbuilds.io/path/to/resource`
|
E.g.: `pr<PR>-<SHA>.ngbuilds.io/path/to/resurce`
|
||||||
- nginx maps the subdomain to the correct sub-directory and serves the resource.
|
- nginx maps the subdomain to the correct sub-direcory and serves the resource.
|
||||||
E.g.: `/<PR>/<SHA>/path/to/resource`
|
E.g.: `/<PR>/<SHA>/path/to/resource`
|
||||||
|
|
||||||
|
|
||||||
|
@ -41,10 +41,9 @@ certificate covering both the domain and subdomains.
|
|||||||
## Create directory for logs (Optional)
|
## Create directory for logs (Optional)
|
||||||
Optionally, a logs directory can pe passed to the docker container for storing non-system-related
|
Optionally, a logs directory can pe passed to the docker container for storing non-system-related
|
||||||
logs. If not provided, the logs are kept locally on the container and will be lost whenever the
|
logs. If not provided, the logs are kept locally on the container and will be lost whenever the
|
||||||
container is replaced (e.g. when updating to use a newer version of the docker image). Log files are
|
container is replaced (e.g. when updating to use a newer version of the docker image).
|
||||||
rotated and retained for 6 months.
|
|
||||||
|
|
||||||
The following log files are kept in this directory:
|
The following files log files are kept in this directory:
|
||||||
|
|
||||||
- `clean-up.log`:
|
- `clean-up.log`:
|
||||||
Output of the `aio-clean-up` command, run as a cronjob for cleaning up the build artifacts of
|
Output of the `aio-clean-up` command, run as a cronjob for cleaning up the build artifacts of
|
||||||
|
75
aio/content/examples/.gitignore
vendored
75
aio/content/examples/.gitignore
vendored
@ -1,70 +1,17 @@
|
|||||||
# boilerplate files
|
# _boilerplate files
|
||||||
**/src/styles.css
|
!_boilerplate/*
|
||||||
**/src/systemjs-angular-loader.js
|
*/*/src/styles.css
|
||||||
**/src/systemjs.config.js
|
*/*/src/systemjs.config.js
|
||||||
**/src/tsconfig.json
|
*/*/src/tsconfig.json
|
||||||
**/bs-config.e2e.json
|
*/*/bs-config.e2e.json
|
||||||
**/bs-config.json
|
*/*/bs-config.json
|
||||||
**/package.json
|
*/*/package.json
|
||||||
**/tslint.json
|
*/*/tslint.json
|
||||||
**/karma.conf.js
|
|
||||||
**/karma-test-shim.js
|
|
||||||
**/browser-test-shim.js
|
|
||||||
**/node_modules
|
|
||||||
|
|
||||||
# built files
|
# example files
|
||||||
*.map
|
|
||||||
_test-output
|
_test-output
|
||||||
protractor-helpers.js
|
protractor-helpers.js
|
||||||
*/e2e-spec.js
|
*/e2e-spec.js
|
||||||
**/*.js
|
|
||||||
**/ts/**/*.js
|
**/ts/**/*.js
|
||||||
**/js-es6*/**/*.js
|
**/js-es6*/**/*.js
|
||||||
dist/
|
**/ts-snippets/**/*.js
|
||||||
|
|
||||||
|
|
||||||
# special
|
|
||||||
!/*
|
|
||||||
!*.1.*
|
|
||||||
!*.2.*
|
|
||||||
!*.3.*
|
|
||||||
*.1.js
|
|
||||||
*.2.js
|
|
||||||
*.3.js
|
|
||||||
*.1.js.map
|
|
||||||
*.2.js.map
|
|
||||||
*.3.js.map
|
|
||||||
!systemjs.config.*.js
|
|
||||||
!karma-test-shim.*.js
|
|
||||||
!copy-dist-files.js
|
|
||||||
|
|
||||||
# AngularJS files
|
|
||||||
!**/*.ajs.js
|
|
||||||
**/app/**/*.ajs.js
|
|
||||||
|
|
||||||
# aot
|
|
||||||
**/*.ngfactory.ts
|
|
||||||
**/*.ngsummary.json
|
|
||||||
**/*.shim.ngstyle.ts
|
|
||||||
**/*.metadata.json
|
|
||||||
!aot/bs-config.json
|
|
||||||
!aot/index.html
|
|
||||||
!rollup-config.js
|
|
||||||
|
|
||||||
# testing
|
|
||||||
!testing/src/browser-test-shim.js
|
|
||||||
!testing/karma*.js
|
|
||||||
|
|
||||||
# TS to JS
|
|
||||||
!ts-to-js/js*/**/*.js
|
|
||||||
ts-to-js/js*/**/system*.js
|
|
||||||
|
|
||||||
# webpack
|
|
||||||
!webpack/**/config/*.js
|
|
||||||
!webpack/**/*webpack*.js
|
|
||||||
|
|
||||||
# styleguide
|
|
||||||
!styleguide/src/systemjs.custom.js
|
|
||||||
|
|
||||||
# plunkers
|
|
||||||
*plnkr.no-link.html
|
|
||||||
|
@ -38,7 +38,7 @@
|
|||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"dependencies": {},
|
"dependencies": {},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"angular-cli": "^1.0.0-rc.0"
|
"angular-cli": "^1.0.0-beta.26"
|
||||||
},
|
},
|
||||||
"repository": {}
|
"repository": {}
|
||||||
}
|
}
|
@ -11,23 +11,18 @@
|
|||||||
// map tells the System loader where to look for things
|
// map tells the System loader where to look for things
|
||||||
map: {
|
map: {
|
||||||
// our app is within the app folder
|
// our app is within the app folder
|
||||||
'app': 'app',
|
app: 'app',
|
||||||
|
|
||||||
// angular bundles
|
// angular bundles
|
||||||
'@angular/animations': 'npm:@angular/animations/bundles/animations.umd.js',
|
|
||||||
'@angular/animations/browser': 'npm:@angular/animations/bundles/animations-browser.umd.js',
|
|
||||||
'@angular/core': 'npm:@angular/core/bundles/core.umd.js',
|
'@angular/core': 'npm:@angular/core/bundles/core.umd.js',
|
||||||
'@angular/common': 'npm:@angular/common/bundles/common.umd.js',
|
'@angular/common': 'npm:@angular/common/bundles/common.umd.js',
|
||||||
'@angular/compiler': 'npm:@angular/compiler/bundles/compiler.umd.js',
|
'@angular/compiler': 'npm:@angular/compiler/bundles/compiler.umd.js',
|
||||||
'@angular/platform-browser': 'npm:@angular/platform-browser/bundles/platform-browser.umd.js',
|
'@angular/platform-browser': 'npm:@angular/platform-browser/bundles/platform-browser.umd.js',
|
||||||
'@angular/platform-browser/animations': 'npm:@angular/platform-browser/bundles/platform-browser-animations.umd.js',
|
|
||||||
'@angular/platform-browser-dynamic': 'npm:@angular/platform-browser-dynamic/bundles/platform-browser-dynamic.umd.js',
|
'@angular/platform-browser-dynamic': 'npm:@angular/platform-browser-dynamic/bundles/platform-browser-dynamic.umd.js',
|
||||||
'@angular/http': 'npm:@angular/http/bundles/http.umd.js',
|
'@angular/http': 'npm:@angular/http/bundles/http.umd.js',
|
||||||
'@angular/router': 'npm:@angular/router/bundles/router.umd.js',
|
'@angular/router': 'npm:@angular/router/bundles/router.umd.js',
|
||||||
'@angular/router/upgrade': 'npm:@angular/router/bundles/router-upgrade.umd.js',
|
'@angular/router/upgrade': 'npm:@angular/router/bundles/router-upgrade.umd.js',
|
||||||
'@angular/forms': 'npm:@angular/forms/bundles/forms.umd.js',
|
'@angular/forms': 'npm:@angular/forms/bundles/forms.umd.js',
|
||||||
'@angular/upgrade': 'npm:@angular/upgrade/bundles/upgrade.umd.js',
|
|
||||||
'@angular/upgrade/static': 'npm:@angular/upgrade/bundles/upgrade-static.umd.js',
|
|
||||||
|
|
||||||
// other libraries
|
// other libraries
|
||||||
'rxjs': 'npm:rxjs',
|
'rxjs': 'npm:rxjs',
|
||||||
@ -37,12 +32,7 @@
|
|||||||
packages: {
|
packages: {
|
||||||
app: {
|
app: {
|
||||||
main: './main.js',
|
main: './main.js',
|
||||||
defaultExtension: 'js',
|
defaultExtension: 'js'
|
||||||
meta: {
|
|
||||||
'./*.js': {
|
|
||||||
loader: 'systemjs-angular-loader.js'
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
},
|
||||||
rxjs: {
|
rxjs: {
|
||||||
defaultExtension: 'js'
|
defaultExtension: 'js'
|
@ -35,16 +35,13 @@
|
|||||||
// map tells the System loader where to look for things
|
// map tells the System loader where to look for things
|
||||||
map: {
|
map: {
|
||||||
// our app is within the app folder
|
// our app is within the app folder
|
||||||
'app': 'app',
|
app: 'app',
|
||||||
|
|
||||||
// angular bundles
|
// angular bundles
|
||||||
'@angular/animations': 'ng:animations-builds/master/bundles/animations.umd.js',
|
|
||||||
'@angular/animations/browser': 'ng:animations-builds/master/bundles/animations-browser.umd.js',
|
|
||||||
'@angular/core': 'ng:core-builds/master/bundles/core.umd.js',
|
'@angular/core': 'ng:core-builds/master/bundles/core.umd.js',
|
||||||
'@angular/common': 'ng:common-builds/master/bundles/common.umd.js',
|
'@angular/common': 'ng:common-builds/master/bundles/common.umd.js',
|
||||||
'@angular/compiler': 'ng:compiler-builds/master/bundles/compiler.umd.js',
|
'@angular/compiler': 'ng:compiler-builds/master/bundles/compiler.umd.js',
|
||||||
'@angular/platform-browser': 'ng:platform-browser-builds/master/bundles/platform-browser.umd.js',
|
'@angular/platform-browser': 'ng:platform-browser-builds/master/bundles/platform-browser.umd.js',
|
||||||
'@angular/platform-browser/animations': 'ng:animations-builds/master/bundles/platform-browser-animations.umd.js',
|
|
||||||
'@angular/platform-browser-dynamic': 'ng:platform-browser-dynamic-builds/master/bundles/platform-browser-dynamic.umd.js',
|
'@angular/platform-browser-dynamic': 'ng:platform-browser-dynamic-builds/master/bundles/platform-browser-dynamic.umd.js',
|
||||||
'@angular/http': 'ng:http-builds/master/bundles/http.umd.js',
|
'@angular/http': 'ng:http-builds/master/bundles/http.umd.js',
|
||||||
'@angular/router': 'ng:router-builds/master/bundles/router.umd.js',
|
'@angular/router': 'ng:router-builds/master/bundles/router.umd.js',
|
||||||
@ -67,19 +64,14 @@
|
|||||||
'rxjs': 'npm:rxjs@5.0.1',
|
'rxjs': 'npm:rxjs@5.0.1',
|
||||||
'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',
|
||||||
'ts': 'npm:plugin-typescript@5.2.7/lib/plugin.js',
|
'ts': 'npm:plugin-typescript@5.2.7/lib/plugin.js',
|
||||||
'typescript': 'npm:typescript@2.2.1/lib/typescript.js',
|
'typescript': 'npm:typescript@2.0.10/lib/typescript.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: {
|
||||||
app: {
|
app: {
|
||||||
main: './main.ts',
|
main: './main.ts',
|
||||||
defaultExtension: 'ts',
|
defaultExtension: 'ts'
|
||||||
meta: {
|
|
||||||
'./*.ts': {
|
|
||||||
loader: 'systemjs-angular-loader.js'
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
},
|
||||||
rxjs: {
|
rxjs: {
|
||||||
defaultExtension: 'js'
|
defaultExtension: 'js'
|
@ -32,16 +32,13 @@
|
|||||||
// map tells the System loader where to look for things
|
// map tells the System loader where to look for things
|
||||||
map: {
|
map: {
|
||||||
// our app is within the app folder
|
// our app is within the app folder
|
||||||
'app': 'app',
|
app: 'app',
|
||||||
|
|
||||||
// angular bundles
|
// angular bundles
|
||||||
'@angular/animations': 'npm:@angular/animations/bundles/animations.umd.js',
|
|
||||||
'@angular/animations/browser': 'npm:@angular/animations/bundles/animations-browser.umd.js',
|
|
||||||
'@angular/core': 'npm:@angular/core/bundles/core.umd.js',
|
'@angular/core': 'npm:@angular/core/bundles/core.umd.js',
|
||||||
'@angular/common': 'npm:@angular/common/bundles/common.umd.js',
|
'@angular/common': 'npm:@angular/common/bundles/common.umd.js',
|
||||||
'@angular/compiler': 'npm:@angular/compiler/bundles/compiler.umd.js',
|
'@angular/compiler': 'npm:@angular/compiler/bundles/compiler.umd.js',
|
||||||
'@angular/platform-browser': 'npm:@angular/platform-browser/bundles/platform-browser.umd.js',
|
'@angular/platform-browser': 'npm:@angular/platform-browser/bundles/platform-browser.umd.js',
|
||||||
'@angular/platform-browser/animations': 'npm:@angular/platform-browser/bundles/platform-browser-animations.umd.js',
|
|
||||||
'@angular/platform-browser-dynamic': 'npm:@angular/platform-browser-dynamic/bundles/platform-browser-dynamic.umd.js',
|
'@angular/platform-browser-dynamic': 'npm:@angular/platform-browser-dynamic/bundles/platform-browser-dynamic.umd.js',
|
||||||
'@angular/http': 'npm:@angular/http/bundles/http.umd.js',
|
'@angular/http': 'npm:@angular/http/bundles/http.umd.js',
|
||||||
'@angular/router': 'npm:@angular/router/bundles/router.umd.js',
|
'@angular/router': 'npm:@angular/router/bundles/router.umd.js',
|
||||||
@ -54,19 +51,14 @@
|
|||||||
'rxjs': 'npm:rxjs@5.0.1',
|
'rxjs': 'npm:rxjs@5.0.1',
|
||||||
'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',
|
||||||
'ts': 'npm:plugin-typescript@5.2.7/lib/plugin.js',
|
'ts': 'npm:plugin-typescript@5.2.7/lib/plugin.js',
|
||||||
'typescript': 'npm:typescript@2.2.1/lib/typescript.js',
|
'typescript': 'npm:typescript@2.0.10/lib/typescript.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: {
|
||||||
app: {
|
app: {
|
||||||
main: './main.ts',
|
main: './main.ts',
|
||||||
defaultExtension: 'ts',
|
defaultExtension: 'ts'
|
||||||
meta: {
|
|
||||||
'./*.ts': {
|
|
||||||
loader: 'systemjs-angular-loader.js'
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
},
|
||||||
rxjs: {
|
rxjs: {
|
||||||
defaultExtension: 'js'
|
defaultExtension: 'js'
|
@ -10,7 +10,7 @@
|
|||||||
"noImplicitAny": true,
|
"noImplicitAny": true,
|
||||||
"suppressImplicitAnyIndexErrors": true,
|
"suppressImplicitAnyIndexErrors": true,
|
||||||
"typeRoots": [
|
"typeRoots": [
|
||||||
"./node_modules/@types/"
|
"../../../node_modules/@types/"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"compileOnSave": true,
|
"compileOnSave": true,
|
1011
aio/content/examples/animations/ts/plnkr.no-link.html
Normal file
1011
aio/content/examples/animations/ts/plnkr.no-link.html
Normal file
File diff suppressed because it is too large
Load Diff
@ -1,8 +1,5 @@
|
|||||||
// #docregion animations-module
|
|
||||||
import { NgModule } from '@angular/core';
|
import { NgModule } from '@angular/core';
|
||||||
import { BrowserModule } from '@angular/platform-browser';
|
import { BrowserModule } from '@angular/platform-browser';
|
||||||
import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
|
|
||||||
// #enddocregion animations-module
|
|
||||||
|
|
||||||
import { HeroTeamBuilderComponent } from './hero-team-builder.component';
|
import { HeroTeamBuilderComponent } from './hero-team-builder.component';
|
||||||
import { HeroListBasicComponent } from './hero-list-basic.component';
|
import { HeroListBasicComponent } from './hero-list-basic.component';
|
||||||
@ -16,10 +13,8 @@ import { HeroListGroupsComponent } from './hero-list-groups.component';
|
|||||||
import { HeroListMultistepComponent } from './hero-list-multistep.component';
|
import { HeroListMultistepComponent } from './hero-list-multistep.component';
|
||||||
import { HeroListTimingsComponent } from './hero-list-timings.component';
|
import { HeroListTimingsComponent } from './hero-list-timings.component';
|
||||||
|
|
||||||
// #docregion animation-module
|
|
||||||
@NgModule({
|
@NgModule({
|
||||||
imports: [ BrowserModule, BrowserAnimationsModule ],
|
imports: [ BrowserModule ],
|
||||||
// #enddocregion animation-module
|
|
||||||
declarations: [
|
declarations: [
|
||||||
HeroTeamBuilderComponent,
|
HeroTeamBuilderComponent,
|
||||||
HeroListBasicComponent,
|
HeroListBasicComponent,
|
@ -1,18 +1,17 @@
|
|||||||
import {
|
import {
|
||||||
Component,
|
Component,
|
||||||
Input
|
Input,
|
||||||
} from '@angular/core';
|
|
||||||
import {
|
|
||||||
trigger,
|
trigger,
|
||||||
state,
|
state,
|
||||||
style,
|
style,
|
||||||
animate,
|
animate,
|
||||||
transition
|
transition
|
||||||
} from '@angular/animations';
|
} from '@angular/core';
|
||||||
|
|
||||||
import { Heroes } from './hero.service';
|
import { Heroes } from './hero.service';
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
|
moduleId: module.id,
|
||||||
selector: 'hero-list-auto',
|
selector: 'hero-list-auto',
|
||||||
// #docregion template
|
// #docregion template
|
||||||
template: `
|
template: `
|
@ -3,20 +3,19 @@
|
|||||||
// #docregion imports
|
// #docregion imports
|
||||||
import {
|
import {
|
||||||
Component,
|
Component,
|
||||||
Input
|
Input,
|
||||||
} from '@angular/core';
|
|
||||||
import {
|
|
||||||
trigger,
|
trigger,
|
||||||
state,
|
state,
|
||||||
style,
|
style,
|
||||||
animate,
|
transition,
|
||||||
transition
|
animate
|
||||||
} from '@angular/animations';
|
} from '@angular/core';
|
||||||
// #enddocregion imports
|
// #enddocregion imports
|
||||||
|
|
||||||
import { Heroes } from './hero.service';
|
import { Heroes } from './hero.service';
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
|
moduleId: module.id,
|
||||||
selector: 'hero-list-basic',
|
selector: 'hero-list-basic',
|
||||||
// #enddocregion
|
// #enddocregion
|
||||||
/* The click event calls hero.toggleState(), which
|
/* The click event calls hero.toggleState(), which
|
@ -2,20 +2,19 @@
|
|||||||
// #docregion imports
|
// #docregion imports
|
||||||
import {
|
import {
|
||||||
Component,
|
Component,
|
||||||
Input
|
Input,
|
||||||
} from '@angular/core';
|
|
||||||
import {
|
|
||||||
trigger,
|
trigger,
|
||||||
state,
|
state,
|
||||||
style,
|
style,
|
||||||
animate,
|
transition,
|
||||||
transition
|
animate
|
||||||
} from '@angular/animations';
|
} from '@angular/core';
|
||||||
// #enddocregion imports
|
// #enddocregion imports
|
||||||
|
|
||||||
import { Heroes } from './hero.service';
|
import { Heroes } from './hero.service';
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
|
moduleId: module.id,
|
||||||
selector: 'hero-list-combined-transitions',
|
selector: 'hero-list-combined-transitions',
|
||||||
// #docregion template
|
// #docregion template
|
||||||
template: `
|
template: `
|
@ -1,18 +1,17 @@
|
|||||||
import {
|
import {
|
||||||
Component,
|
Component,
|
||||||
Input
|
Input,
|
||||||
} from '@angular/core';
|
|
||||||
import {
|
|
||||||
trigger,
|
trigger,
|
||||||
state,
|
state,
|
||||||
style,
|
style,
|
||||||
animate,
|
animate,
|
||||||
transition
|
transition
|
||||||
} from '@angular/animations';
|
} from '@angular/core';
|
||||||
|
|
||||||
import { Heroes } from './hero.service';
|
import { Heroes } from './hero.service';
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
|
moduleId: module.id,
|
||||||
selector: 'hero-list-enter-leave-states',
|
selector: 'hero-list-enter-leave-states',
|
||||||
// #docregion template
|
// #docregion template
|
||||||
template: `
|
template: `
|
@ -1,18 +1,17 @@
|
|||||||
import {
|
import {
|
||||||
Component,
|
Component,
|
||||||
Input
|
Input,
|
||||||
} from '@angular/core';
|
|
||||||
import {
|
|
||||||
trigger,
|
trigger,
|
||||||
state,
|
state,
|
||||||
style,
|
style,
|
||||||
animate,
|
animate,
|
||||||
transition
|
transition
|
||||||
} from '@angular/animations';
|
} from '@angular/core';
|
||||||
|
|
||||||
import { Heroes } from './hero.service';
|
import { Heroes } from './hero.service';
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
|
moduleId: module.id,
|
||||||
selector: 'hero-list-enter-leave',
|
selector: 'hero-list-enter-leave',
|
||||||
// #docregion template
|
// #docregion template
|
||||||
template: `
|
template: `
|
@ -1,19 +1,18 @@
|
|||||||
import {
|
import {
|
||||||
Component,
|
Component,
|
||||||
Input
|
Input,
|
||||||
} from '@angular/core';
|
|
||||||
import {
|
|
||||||
trigger,
|
trigger,
|
||||||
state,
|
state,
|
||||||
style,
|
style,
|
||||||
animate,
|
animate,
|
||||||
transition,
|
transition,
|
||||||
group
|
group
|
||||||
} from '@angular/animations';
|
} from '@angular/core';
|
||||||
|
|
||||||
import { Heroes } from './hero.service';
|
import { Heroes } from './hero.service';
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
|
moduleId: module.id,
|
||||||
selector: 'hero-list-groups',
|
selector: 'hero-list-groups',
|
||||||
template: `
|
template: `
|
||||||
<ul>
|
<ul>
|
@ -3,18 +3,17 @@
|
|||||||
import {
|
import {
|
||||||
Component,
|
Component,
|
||||||
Input,
|
Input,
|
||||||
} from '@angular/core';
|
|
||||||
import {
|
|
||||||
trigger,
|
trigger,
|
||||||
style,
|
style,
|
||||||
animate,
|
transition,
|
||||||
transition
|
animate
|
||||||
} from '@angular/animations';
|
} from '@angular/core';
|
||||||
// #enddocregion imports
|
// #enddocregion imports
|
||||||
|
|
||||||
import { Heroes } from './hero.service';
|
import { Heroes } from './hero.service';
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
|
moduleId: module.id,
|
||||||
selector: 'hero-list-inline-styles',
|
selector: 'hero-list-inline-styles',
|
||||||
// #docregion template
|
// #docregion template
|
||||||
template: `
|
template: `
|
@ -1,20 +1,19 @@
|
|||||||
import {
|
import {
|
||||||
Component,
|
Component,
|
||||||
Input,
|
Input,
|
||||||
} from '@angular/core';
|
|
||||||
import {
|
|
||||||
trigger,
|
trigger,
|
||||||
state,
|
state,
|
||||||
style,
|
style,
|
||||||
animate,
|
animate,
|
||||||
transition,
|
transition,
|
||||||
keyframes,
|
keyframes,
|
||||||
AnimationEvent
|
AnimationTransitionEvent
|
||||||
} from '@angular/animations';
|
} from '@angular/core';
|
||||||
|
|
||||||
import { Heroes } from './hero.service';
|
import { Heroes } from './hero.service';
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
|
moduleId: module.id,
|
||||||
selector: 'hero-list-multistep',
|
selector: 'hero-list-multistep',
|
||||||
// #docregion template
|
// #docregion template
|
||||||
template: `
|
template: `
|
||||||
@ -61,11 +60,11 @@ import { Heroes } from './hero.service';
|
|||||||
export class HeroListMultistepComponent {
|
export class HeroListMultistepComponent {
|
||||||
@Input() heroes: Heroes;
|
@Input() heroes: Heroes;
|
||||||
|
|
||||||
animationStarted(event: AnimationEvent) {
|
animationStarted(event: AnimationTransitionEvent) {
|
||||||
console.warn('Animation started: ', event);
|
console.warn('Animation started: ', event);
|
||||||
}
|
}
|
||||||
|
|
||||||
animationDone(event: AnimationEvent) {
|
animationDone(event: AnimationTransitionEvent) {
|
||||||
console.warn('Animation done: ', event);
|
console.warn('Animation done: ', event);
|
||||||
}
|
}
|
||||||
}
|
}
|
@ -1,18 +1,17 @@
|
|||||||
import {
|
import {
|
||||||
Component,
|
Component,
|
||||||
Input
|
Input,
|
||||||
} from '@angular/core';
|
|
||||||
import {
|
|
||||||
trigger,
|
trigger,
|
||||||
state,
|
state,
|
||||||
style,
|
style,
|
||||||
animate,
|
animate,
|
||||||
transition
|
transition
|
||||||
} from '@angular/animations';
|
} from '@angular/core';
|
||||||
|
|
||||||
import { Heroes } from './hero.service';
|
import { Heroes } from './hero.service';
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
|
moduleId: module.id,
|
||||||
selector: 'hero-list-timings',
|
selector: 'hero-list-timings',
|
||||||
template: `
|
template: `
|
||||||
<ul>
|
<ul>
|
@ -2,20 +2,19 @@
|
|||||||
// #docregion imports
|
// #docregion imports
|
||||||
import {
|
import {
|
||||||
Component,
|
Component,
|
||||||
Input
|
Input,
|
||||||
} from '@angular/core';
|
|
||||||
import {
|
|
||||||
trigger,
|
trigger,
|
||||||
state,
|
state,
|
||||||
style,
|
style,
|
||||||
animate,
|
transition,
|
||||||
transition
|
animate
|
||||||
} from '@angular/animations';
|
} from '@angular/core';
|
||||||
// #enddocregion imports
|
// #enddocregion imports
|
||||||
|
|
||||||
import { Heroes } from './hero.service';
|
import { Heroes } from './hero.service';
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
|
moduleId: module.id,
|
||||||
selector: 'hero-list-twoway',
|
selector: 'hero-list-twoway',
|
||||||
// #docregion template
|
// #docregion template
|
||||||
template: `
|
template: `
|
@ -1,5 +1,5 @@
|
|||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
<html lang="en">
|
<html>
|
||||||
<head>
|
<head>
|
||||||
<meta charset="UTF-8">
|
<meta charset="UTF-8">
|
||||||
<title>Animations</title>
|
<title>Animations</title>
|
481
aio/content/examples/architecture/ts/plnkr.no-link.html
Normal file
481
aio/content/examples/architecture/ts/plnkr.no-link.html
Normal file
@ -0,0 +1,481 @@
|
|||||||
|
<html lang="en"><head></head><body><form id="mainForm" method="post" action="http://plnkr.co/edit/?p=preview" target="_self"><input type="hidden" name="files[app/app.component.ts]" value="import { Component } from '@angular/core';
|
||||||
|
|
||||||
|
@Component({
|
||||||
|
selector: 'my-app',
|
||||||
|
template: `
|
||||||
|
<hero-list></hero-list>
|
||||||
|
<sales-tax></sales-tax>
|
||||||
|
`
|
||||||
|
})
|
||||||
|
export class AppComponent { }
|
||||||
|
|
||||||
|
|
||||||
|
/*
|
||||||
|
Copyright 2016 Google Inc. All Rights Reserved.
|
||||||
|
Use of this source code is governed by an MIT-style license that
|
||||||
|
can be found in the LICENSE file at http://angular.io/license
|
||||||
|
*/"><input type="hidden" name="files[app/app.module.ts]" value="import { BrowserModule } from '@angular/platform-browser';
|
||||||
|
import { FormsModule } from '@angular/forms';
|
||||||
|
import { NgModule } from '@angular/core';
|
||||||
|
import { AppComponent } from './app.component';
|
||||||
|
import { HeroDetailComponent } from './hero-detail.component';
|
||||||
|
import { HeroListComponent } from './hero-list.component';
|
||||||
|
import { SalesTaxComponent } from './sales-tax.component';
|
||||||
|
import { HeroService } from './hero.service';
|
||||||
|
import { BackendService } from './backend.service';
|
||||||
|
import { Logger } from './logger.service';
|
||||||
|
|
||||||
|
@NgModule({
|
||||||
|
imports: [
|
||||||
|
BrowserModule,
|
||||||
|
FormsModule
|
||||||
|
],
|
||||||
|
declarations: [
|
||||||
|
AppComponent,
|
||||||
|
HeroDetailComponent,
|
||||||
|
HeroListComponent,
|
||||||
|
SalesTaxComponent
|
||||||
|
],
|
||||||
|
providers: [
|
||||||
|
BackendService,
|
||||||
|
HeroService,
|
||||||
|
Logger
|
||||||
|
],
|
||||||
|
bootstrap: [ AppComponent ]
|
||||||
|
})
|
||||||
|
export class AppModule { }
|
||||||
|
|
||||||
|
|
||||||
|
/*
|
||||||
|
Copyright 2016 Google Inc. All Rights Reserved.
|
||||||
|
Use of this source code is governed by an MIT-style license that
|
||||||
|
can be found in the LICENSE file at http://angular.io/license
|
||||||
|
*/"><input type="hidden" name="files[app/backend.service.ts]" value="import { Injectable, Type } from '@angular/core';
|
||||||
|
|
||||||
|
import { Logger } from './logger.service';
|
||||||
|
import { Hero } from './hero';
|
||||||
|
|
||||||
|
const HEROES = [
|
||||||
|
new Hero('Windstorm', 'Weather mastery'),
|
||||||
|
new Hero('Mr. Nice', 'Killing them with kindness'),
|
||||||
|
new Hero('Magneta', 'Manipulates metalic objects')
|
||||||
|
];
|
||||||
|
|
||||||
|
@Injectable()
|
||||||
|
export class BackendService {
|
||||||
|
constructor(private logger: Logger) {}
|
||||||
|
|
||||||
|
getAll(type: Type<any>): PromiseLike<any[]> {
|
||||||
|
if (type === Hero) {
|
||||||
|
// TODO get from the database
|
||||||
|
return Promise.resolve<Hero[]>(HEROES);
|
||||||
|
}
|
||||||
|
let err = new Error('Cannot get object of this type');
|
||||||
|
this.logger.error(err);
|
||||||
|
throw err;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/*
|
||||||
|
Copyright 2016 Google Inc. All Rights Reserved.
|
||||||
|
Use of this source code is governed by an MIT-style license that
|
||||||
|
can be found in the LICENSE file at http://angular.io/license
|
||||||
|
*/"><input type="hidden" name="files[app/hero-detail.component.ts]" value="import { Component, Input } from '@angular/core';
|
||||||
|
|
||||||
|
import { Hero } from './hero';
|
||||||
|
|
||||||
|
@Component({
|
||||||
|
moduleId: module.id,
|
||||||
|
selector: 'hero-detail',
|
||||||
|
templateUrl: './hero-detail.component.html'
|
||||||
|
})
|
||||||
|
export class HeroDetailComponent {
|
||||||
|
@Input() hero: Hero;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/*
|
||||||
|
Copyright 2016 Google Inc. All Rights Reserved.
|
||||||
|
Use of this source code is governed by an MIT-style license that
|
||||||
|
can be found in the LICENSE file at http://angular.io/license
|
||||||
|
*/"><input type="hidden" name="files[app/hero-list.component.ts]" value="import { Component, OnInit } from '@angular/core';
|
||||||
|
|
||||||
|
import { Hero } from './hero';
|
||||||
|
import { HeroService } from './hero.service';
|
||||||
|
|
||||||
|
@Component({
|
||||||
|
moduleId: module.id,
|
||||||
|
selector: 'hero-list',
|
||||||
|
templateUrl: './hero-list.component.html',
|
||||||
|
providers: [ HeroService ]
|
||||||
|
})
|
||||||
|
export class HeroListComponent implements OnInit {
|
||||||
|
heroes: Hero[];
|
||||||
|
selectedHero: Hero;
|
||||||
|
|
||||||
|
constructor(private service: HeroService) { }
|
||||||
|
|
||||||
|
ngOnInit() {
|
||||||
|
this.heroes = this.service.getHeroes();
|
||||||
|
}
|
||||||
|
|
||||||
|
selectHero(hero: Hero) { this.selectedHero = hero; }
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/*
|
||||||
|
Copyright 2016 Google Inc. All Rights Reserved.
|
||||||
|
Use of this source code is governed by an MIT-style license that
|
||||||
|
can be found in the LICENSE file at http://angular.io/license
|
||||||
|
*/"><input type="hidden" name="files[app/hero.service.ts]" value="import { Injectable } from '@angular/core';
|
||||||
|
|
||||||
|
import { Hero } from './hero';
|
||||||
|
import { BackendService } from './backend.service';
|
||||||
|
import { Logger } from './logger.service';
|
||||||
|
|
||||||
|
@Injectable()
|
||||||
|
export class HeroService {
|
||||||
|
private heroes: Hero[] = [];
|
||||||
|
|
||||||
|
constructor(
|
||||||
|
private backend: BackendService,
|
||||||
|
private logger: Logger) { }
|
||||||
|
|
||||||
|
getHeroes() {
|
||||||
|
this.backend.getAll(Hero).then( (heroes: Hero[]) => {
|
||||||
|
this.logger.log(`Fetched ${heroes.length} heroes.`);
|
||||||
|
this.heroes.push(...heroes); // fill cache
|
||||||
|
});
|
||||||
|
return this.heroes;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/*
|
||||||
|
Copyright 2016 Google Inc. All Rights Reserved.
|
||||||
|
Use of this source code is governed by an MIT-style license that
|
||||||
|
can be found in the LICENSE file at http://angular.io/license
|
||||||
|
*/"><input type="hidden" name="files[app/hero.ts]" value="let nextId = 1;
|
||||||
|
|
||||||
|
export class Hero {
|
||||||
|
id: number;
|
||||||
|
constructor(
|
||||||
|
public name: string,
|
||||||
|
public power?: string) {
|
||||||
|
this.id = nextId++;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/*
|
||||||
|
Copyright 2016 Google Inc. All Rights Reserved.
|
||||||
|
Use of this source code is governed by an MIT-style license that
|
||||||
|
can be found in the LICENSE file at http://angular.io/license
|
||||||
|
*/"><input type="hidden" name="files[app/logger.service.ts]" value="import { Injectable } from '@angular/core';
|
||||||
|
|
||||||
|
@Injectable()
|
||||||
|
export class Logger {
|
||||||
|
log(msg: any) { console.log(msg); }
|
||||||
|
error(msg: any) { console.error(msg); }
|
||||||
|
warn(msg: any) { console.warn(msg); }
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/*
|
||||||
|
Copyright 2016 Google Inc. All Rights Reserved.
|
||||||
|
Use of this source code is governed by an MIT-style license that
|
||||||
|
can be found in the LICENSE file at http://angular.io/license
|
||||||
|
*/"><input type="hidden" name="files[app/mini-app.ts]" value="// A mini-application
|
||||||
|
import { Injectable } from '@angular/core';
|
||||||
|
|
||||||
|
@Injectable()
|
||||||
|
export class Logger {
|
||||||
|
log(message: string) { console.log(message); }
|
||||||
|
}
|
||||||
|
|
||||||
|
import { Component } from '@angular/core';
|
||||||
|
|
||||||
|
@Component({
|
||||||
|
selector: 'my-app',
|
||||||
|
template: 'Welcome to Angular'
|
||||||
|
})
|
||||||
|
export class AppComponent {
|
||||||
|
constructor(logger: Logger) {
|
||||||
|
logger.log('Let the fun begin!');
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
import { NgModule } from '@angular/core';
|
||||||
|
import { BrowserModule } from '@angular/platform-browser';
|
||||||
|
@NgModule({
|
||||||
|
imports: [ BrowserModule ],
|
||||||
|
providers: [ Logger ],
|
||||||
|
declarations: [ AppComponent ],
|
||||||
|
exports: [ AppComponent ],
|
||||||
|
bootstrap: [ AppComponent ]
|
||||||
|
})
|
||||||
|
export class AppModule { }
|
||||||
|
|
||||||
|
import { platformBrowserDynamic } from '@angular/platform-browser-dynamic';
|
||||||
|
|
||||||
|
platformBrowserDynamic().bootstrapModule(AppModule);
|
||||||
|
|
||||||
|
|
||||||
|
/*
|
||||||
|
Copyright 2016 Google Inc. All Rights Reserved.
|
||||||
|
Use of this source code is governed by an MIT-style license that
|
||||||
|
can be found in the LICENSE file at http://angular.io/license
|
||||||
|
*/"><input type="hidden" name="files[app/sales-tax.component.ts]" value="import { Component } from '@angular/core';
|
||||||
|
|
||||||
|
import { SalesTaxService } from './sales-tax.service';
|
||||||
|
import { TaxRateService } from './tax-rate.service';
|
||||||
|
|
||||||
|
@Component({
|
||||||
|
selector: 'sales-tax',
|
||||||
|
template: `
|
||||||
|
<h2>Sales Tax Calculator</h2>
|
||||||
|
Amount: <input #amountBox (change)="0">
|
||||||
|
|
||||||
|
<div *ngIf="amountBox.value">
|
||||||
|
The sales tax is
|
||||||
|
{{ getTax(amountBox.value) | currency:'USD':true:'1.2-2' }}
|
||||||
|
</div>
|
||||||
|
`,
|
||||||
|
providers: [SalesTaxService, TaxRateService]
|
||||||
|
})
|
||||||
|
export class SalesTaxComponent {
|
||||||
|
constructor(private salesTaxService: SalesTaxService) { }
|
||||||
|
|
||||||
|
getTax(value: string | number) {
|
||||||
|
return this.salesTaxService.getVAT(value);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/*
|
||||||
|
Copyright 2016 Google Inc. All Rights Reserved.
|
||||||
|
Use of this source code is governed by an MIT-style license that
|
||||||
|
can be found in the LICENSE file at http://angular.io/license
|
||||||
|
*/"><input type="hidden" name="files[app/sales-tax.service.ts]" value="import { Injectable } from '@angular/core';
|
||||||
|
|
||||||
|
import { TaxRateService } from './tax-rate.service';
|
||||||
|
|
||||||
|
@Injectable()
|
||||||
|
export class SalesTaxService {
|
||||||
|
constructor(private rateService: TaxRateService) { }
|
||||||
|
|
||||||
|
getVAT(value: string | number) {
|
||||||
|
let amount = (typeof value === 'string') ?
|
||||||
|
parseFloat(value) : value;
|
||||||
|
return (amount || 0) * this.rateService.getRate('VAT');
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/*
|
||||||
|
Copyright 2016 Google Inc. All Rights Reserved.
|
||||||
|
Use of this source code is governed by an MIT-style license that
|
||||||
|
can be found in the LICENSE file at http://angular.io/license
|
||||||
|
*/"><input type="hidden" name="files[app/tax-rate.service.ts]" value="import { Injectable } from '@angular/core';
|
||||||
|
|
||||||
|
@Injectable()
|
||||||
|
export class TaxRateService {
|
||||||
|
getRate(rateName: string) { return 0.10; } // 10% everywhere
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/*
|
||||||
|
Copyright 2016 Google Inc. All Rights Reserved.
|
||||||
|
Use of this source code is governed by an MIT-style license that
|
||||||
|
can be found in the LICENSE file at http://angular.io/license
|
||||||
|
*/"><input type="hidden" name="files[main.ts]" value="import { platformBrowserDynamic } from '@angular/platform-browser-dynamic';
|
||||||
|
import { AppModule } from './app/app.module';
|
||||||
|
|
||||||
|
platformBrowserDynamic().bootstrapModule(AppModule);
|
||||||
|
|
||||||
|
|
||||||
|
/*
|
||||||
|
Copyright 2016 Google Inc. All Rights Reserved.
|
||||||
|
Use of this source code is governed by an MIT-style license that
|
||||||
|
can be found in the LICENSE file at http://angular.io/license
|
||||||
|
*/"><input type="hidden" name="files[styles.css]" value="/* Master Styles */
|
||||||
|
h1 {
|
||||||
|
color: #369;
|
||||||
|
font-family: Arial, Helvetica, sans-serif;
|
||||||
|
font-size: 250%;
|
||||||
|
}
|
||||||
|
h2, h3 {
|
||||||
|
color: #444;
|
||||||
|
font-family: Arial, Helvetica, sans-serif;
|
||||||
|
font-weight: lighter;
|
||||||
|
}
|
||||||
|
body {
|
||||||
|
margin: 2em;
|
||||||
|
}
|
||||||
|
body, input[text], button {
|
||||||
|
color: #888;
|
||||||
|
font-family: Cambria, Georgia;
|
||||||
|
}
|
||||||
|
a {
|
||||||
|
cursor: pointer;
|
||||||
|
cursor: hand;
|
||||||
|
}
|
||||||
|
button {
|
||||||
|
font-family: Arial;
|
||||||
|
background-color: #eee;
|
||||||
|
border: none;
|
||||||
|
padding: 5px 10px;
|
||||||
|
border-radius: 4px;
|
||||||
|
cursor: pointer;
|
||||||
|
cursor: hand;
|
||||||
|
}
|
||||||
|
button:hover {
|
||||||
|
background-color: #cfd8dc;
|
||||||
|
}
|
||||||
|
button:disabled {
|
||||||
|
background-color: #eee;
|
||||||
|
color: #aaa;
|
||||||
|
cursor: auto;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Navigation link styles */
|
||||||
|
nav a {
|
||||||
|
padding: 5px 10px;
|
||||||
|
text-decoration: none;
|
||||||
|
margin-right: 10px;
|
||||||
|
margin-top: 10px;
|
||||||
|
display: inline-block;
|
||||||
|
background-color: #eee;
|
||||||
|
border-radius: 4px;
|
||||||
|
}
|
||||||
|
nav a:visited, a:link {
|
||||||
|
color: #607D8B;
|
||||||
|
}
|
||||||
|
nav a:hover {
|
||||||
|
color: #039be5;
|
||||||
|
background-color: #CFD8DC;
|
||||||
|
}
|
||||||
|
nav a.active {
|
||||||
|
color: #039be5;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* items class */
|
||||||
|
.items {
|
||||||
|
margin: 0 0 2em 0;
|
||||||
|
list-style-type: none;
|
||||||
|
padding: 0;
|
||||||
|
width: 24em;
|
||||||
|
}
|
||||||
|
.items li {
|
||||||
|
cursor: pointer;
|
||||||
|
position: relative;
|
||||||
|
left: 0;
|
||||||
|
background-color: #EEE;
|
||||||
|
margin: .5em;
|
||||||
|
padding: .3em 0;
|
||||||
|
height: 1.6em;
|
||||||
|
border-radius: 4px;
|
||||||
|
}
|
||||||
|
.items li:hover {
|
||||||
|
color: #607D8B;
|
||||||
|
background-color: #DDD;
|
||||||
|
left: .1em;
|
||||||
|
}
|
||||||
|
.items li.selected {
|
||||||
|
background-color: #CFD8DC;
|
||||||
|
color: white;
|
||||||
|
}
|
||||||
|
.items li.selected:hover {
|
||||||
|
background-color: #BBD8DC;
|
||||||
|
}
|
||||||
|
.items .text {
|
||||||
|
position: relative;
|
||||||
|
top: -3px;
|
||||||
|
}
|
||||||
|
.items .badge {
|
||||||
|
display: inline-block;
|
||||||
|
font-size: small;
|
||||||
|
color: white;
|
||||||
|
padding: 0.8em 0.7em 0 0.7em;
|
||||||
|
background-color: #607D8B;
|
||||||
|
line-height: 1em;
|
||||||
|
position: relative;
|
||||||
|
left: -1px;
|
||||||
|
top: -4px;
|
||||||
|
height: 1.8em;
|
||||||
|
margin-right: .8em;
|
||||||
|
border-radius: 4px 0 0 4px;
|
||||||
|
}
|
||||||
|
/* everywhere else */
|
||||||
|
* {
|
||||||
|
font-family: Arial, Helvetica, sans-serif;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/*
|
||||||
|
Copyright 2016 Google Inc. All Rights Reserved.
|
||||||
|
Use of this source code is governed by an MIT-style license that
|
||||||
|
can be found in the LICENSE file at http://angular.io/license
|
||||||
|
*/"><input type="hidden" name="files[app/hero-detail.component.html]" value="<hr>
|
||||||
|
<h4>{{hero.name}} Detail</h4>
|
||||||
|
<div>Id: {{hero.id}}</div>
|
||||||
|
<div>Name:
|
||||||
|
<input [(ngModel)]="hero.name">
|
||||||
|
</div>
|
||||||
|
<div>Power:<input [(ngModel)]="hero.power"></div>
|
||||||
|
|
||||||
|
|
||||||
|
<!--
|
||||||
|
Copyright 2016 Google Inc. All Rights Reserved.
|
||||||
|
Use of this source code is governed by an MIT-style license that
|
||||||
|
can be found in the LICENSE file at http://angular.io/license
|
||||||
|
-->"><input type="hidden" name="files[app/hero-list.component.html]" value="<h2>Hero List</h2>
|
||||||
|
|
||||||
|
<p><i>Pick a hero from the list</i></p>
|
||||||
|
<ul>
|
||||||
|
<li *ngFor="let hero of heroes" (click)="selectHero(hero)">
|
||||||
|
{{hero.name}}
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
|
|
||||||
|
<hero-detail *ngIf="selectedHero" [hero]="selectedHero"></hero-detail>
|
||||||
|
|
||||||
|
|
||||||
|
<!--
|
||||||
|
Copyright 2016 Google Inc. All Rights Reserved.
|
||||||
|
Use of this source code is governed by an MIT-style license that
|
||||||
|
can be found in the LICENSE file at http://angular.io/license
|
||||||
|
-->"><input type="hidden" name="files[index.html]" value="<!DOCTYPE html>
|
||||||
|
<html>
|
||||||
|
<head>
|
||||||
|
<title>Architecture of Angular</title>
|
||||||
|
<meta charset="UTF-8">
|
||||||
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||||
|
<script>document.write('<base href="' + document.location + '" />');</script>
|
||||||
|
<link rel="stylesheet" href="styles.css">
|
||||||
|
|
||||||
|
<!-- Polyfills -->
|
||||||
|
<script src="https://unpkg.com/core-js/client/shim.min.js"></script>
|
||||||
|
|
||||||
|
<script src="https://unpkg.com/zone.js@0.7.4?main=browser"></script>
|
||||||
|
<script src="https://unpkg.com/systemjs@0.19.39/dist/system.src.js"></script>
|
||||||
|
|
||||||
|
<script src="https://cdn.rawgit.com/angular/angular.io/b3c65a9/public/docs/_examples/_boilerplate/systemjs.config.web.js"></script>
|
||||||
|
<script>
|
||||||
|
System.import('main.js').catch(function(err){ console.error(err); });
|
||||||
|
</script>
|
||||||
|
</head>
|
||||||
|
|
||||||
|
<body>
|
||||||
|
<my-app>Loading...</my-app>
|
||||||
|
</body>
|
||||||
|
|
||||||
|
</html>
|
||||||
|
|
||||||
|
|
||||||
|
<!--
|
||||||
|
Copyright 2016 Google Inc. All Rights Reserved.
|
||||||
|
Use of this source code is governed by an MIT-style license that
|
||||||
|
can be found in the LICENSE file at http://angular.io/license
|
||||||
|
-->"><input type="hidden" name="tags[0]" value="angular"><input type="hidden" name="tags[1]" value="example"><input type="hidden" name="private" value="true"><input type="hidden" name="description" value="Angular Example - Intro to Angular"></form><script>document.getElementById("mainForm").submit();</script></body></html>
|
@ -3,6 +3,7 @@ import { Component, Input } from '@angular/core';
|
|||||||
import { Hero } from './hero';
|
import { Hero } from './hero';
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
|
moduleId: module.id,
|
||||||
selector: 'hero-detail',
|
selector: 'hero-detail',
|
||||||
templateUrl: './hero-detail.component.html'
|
templateUrl: './hero-detail.component.html'
|
||||||
})
|
})
|
@ -5,6 +5,7 @@ import { HeroService } from './hero.service';
|
|||||||
|
|
||||||
// #docregion metadata, providers
|
// #docregion metadata, providers
|
||||||
@Component({
|
@Component({
|
||||||
|
moduleId: module.id,
|
||||||
selector: 'hero-list',
|
selector: 'hero-list',
|
||||||
templateUrl: './hero-list.component.html',
|
templateUrl: './hero-list.component.html',
|
||||||
providers: [ HeroService ]
|
providers: [ HeroService ]
|
@ -15,7 +15,7 @@ describe('Attribute directives', function () {
|
|||||||
});
|
});
|
||||||
|
|
||||||
it('should be able to select green highlight', function () {
|
it('should be able to select green highlight', function () {
|
||||||
let highlightedEle = element(by.cssContainingText('p', 'Highlight me!'));
|
let highlightedEle = element(by.cssContainingText('p', 'Highlight me'));
|
||||||
let lightGreen = 'rgba(144, 238, 144, 1)';
|
let lightGreen = 'rgba(144, 238, 144, 1)';
|
||||||
|
|
||||||
expect(highlightedEle.getCssValue('background-color')).not.toEqual(lightGreen);
|
expect(highlightedEle.getCssValue('background-color')).not.toEqual(lightGreen);
|
||||||
|
253
aio/content/examples/attribute-directives/ts/plnkr.no-link.html
Normal file
253
aio/content/examples/attribute-directives/ts/plnkr.no-link.html
Normal file
@ -0,0 +1,253 @@
|
|||||||
|
<html lang="en"><head></head><body><form id="mainForm" method="post" action="http://plnkr.co/edit/?p=preview" target="_self"><input type="hidden" name="files[app/app.component.ts]" value="import { Component } from '@angular/core';
|
||||||
|
|
||||||
|
@Component({
|
||||||
|
moduleId: module.id,
|
||||||
|
selector: 'my-app',
|
||||||
|
templateUrl: './app.component.html'
|
||||||
|
})
|
||||||
|
export class AppComponent {
|
||||||
|
color: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/*
|
||||||
|
Copyright 2016 Google Inc. All Rights Reserved.
|
||||||
|
Use of this source code is governed by an MIT-style license that
|
||||||
|
can be found in the LICENSE file at http://angular.io/license
|
||||||
|
*/"><input type="hidden" name="files[app/app.module.ts]" value="import { NgModule } from '@angular/core';
|
||||||
|
import { BrowserModule } from '@angular/platform-browser';
|
||||||
|
|
||||||
|
import { AppComponent } from './app.component';
|
||||||
|
import { HighlightDirective } from './highlight.directive';
|
||||||
|
|
||||||
|
@NgModule({
|
||||||
|
imports: [ BrowserModule ],
|
||||||
|
declarations: [
|
||||||
|
AppComponent,
|
||||||
|
HighlightDirective
|
||||||
|
],
|
||||||
|
bootstrap: [ AppComponent ]
|
||||||
|
})
|
||||||
|
export class AppModule { }
|
||||||
|
|
||||||
|
|
||||||
|
/*
|
||||||
|
Copyright 2016 Google Inc. All Rights Reserved.
|
||||||
|
Use of this source code is governed by an MIT-style license that
|
||||||
|
can be found in the LICENSE file at http://angular.io/license
|
||||||
|
*/"><input type="hidden" name="files[app/highlight.directive.ts]" value="/* tslint:disable:member-ordering */
|
||||||
|
import { Directive, ElementRef, HostListener, Input } from '@angular/core';
|
||||||
|
|
||||||
|
@Directive({
|
||||||
|
selector: '[myHighlight]'
|
||||||
|
})
|
||||||
|
export class HighlightDirective {
|
||||||
|
|
||||||
|
constructor(private el: ElementRef) { }
|
||||||
|
|
||||||
|
@Input() defaultColor: string;
|
||||||
|
|
||||||
|
@Input('myHighlight') highlightColor: string;
|
||||||
|
|
||||||
|
@HostListener('mouseenter') onMouseEnter() {
|
||||||
|
this.highlight(this.highlightColor || this.defaultColor || 'red');
|
||||||
|
}
|
||||||
|
|
||||||
|
@HostListener('mouseleave') onMouseLeave() {
|
||||||
|
this.highlight(null);
|
||||||
|
}
|
||||||
|
|
||||||
|
private highlight(color: string) {
|
||||||
|
this.el.nativeElement.style.backgroundColor = color;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/*
|
||||||
|
Copyright 2016 Google Inc. All Rights Reserved.
|
||||||
|
Use of this source code is governed by an MIT-style license that
|
||||||
|
can be found in the LICENSE file at http://angular.io/license
|
||||||
|
*/"><input type="hidden" name="files[main.ts]" value="import { platformBrowserDynamic } from '@angular/platform-browser-dynamic';
|
||||||
|
import { AppModule } from './app/app.module';
|
||||||
|
|
||||||
|
platformBrowserDynamic().bootstrapModule(AppModule);
|
||||||
|
|
||||||
|
|
||||||
|
/*
|
||||||
|
Copyright 2016 Google Inc. All Rights Reserved.
|
||||||
|
Use of this source code is governed by an MIT-style license that
|
||||||
|
can be found in the LICENSE file at http://angular.io/license
|
||||||
|
*/"><input type="hidden" name="files[styles.css]" value="/* Master Styles */
|
||||||
|
h1 {
|
||||||
|
color: #369;
|
||||||
|
font-family: Arial, Helvetica, sans-serif;
|
||||||
|
font-size: 250%;
|
||||||
|
}
|
||||||
|
h2, h3 {
|
||||||
|
color: #444;
|
||||||
|
font-family: Arial, Helvetica, sans-serif;
|
||||||
|
font-weight: lighter;
|
||||||
|
}
|
||||||
|
body {
|
||||||
|
margin: 2em;
|
||||||
|
}
|
||||||
|
body, input[text], button {
|
||||||
|
color: #888;
|
||||||
|
font-family: Cambria, Georgia;
|
||||||
|
}
|
||||||
|
a {
|
||||||
|
cursor: pointer;
|
||||||
|
cursor: hand;
|
||||||
|
}
|
||||||
|
button {
|
||||||
|
font-family: Arial;
|
||||||
|
background-color: #eee;
|
||||||
|
border: none;
|
||||||
|
padding: 5px 10px;
|
||||||
|
border-radius: 4px;
|
||||||
|
cursor: pointer;
|
||||||
|
cursor: hand;
|
||||||
|
}
|
||||||
|
button:hover {
|
||||||
|
background-color: #cfd8dc;
|
||||||
|
}
|
||||||
|
button:disabled {
|
||||||
|
background-color: #eee;
|
||||||
|
color: #aaa;
|
||||||
|
cursor: auto;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Navigation link styles */
|
||||||
|
nav a {
|
||||||
|
padding: 5px 10px;
|
||||||
|
text-decoration: none;
|
||||||
|
margin-right: 10px;
|
||||||
|
margin-top: 10px;
|
||||||
|
display: inline-block;
|
||||||
|
background-color: #eee;
|
||||||
|
border-radius: 4px;
|
||||||
|
}
|
||||||
|
nav a:visited, a:link {
|
||||||
|
color: #607D8B;
|
||||||
|
}
|
||||||
|
nav a:hover {
|
||||||
|
color: #039be5;
|
||||||
|
background-color: #CFD8DC;
|
||||||
|
}
|
||||||
|
nav a.active {
|
||||||
|
color: #039be5;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* items class */
|
||||||
|
.items {
|
||||||
|
margin: 0 0 2em 0;
|
||||||
|
list-style-type: none;
|
||||||
|
padding: 0;
|
||||||
|
width: 24em;
|
||||||
|
}
|
||||||
|
.items li {
|
||||||
|
cursor: pointer;
|
||||||
|
position: relative;
|
||||||
|
left: 0;
|
||||||
|
background-color: #EEE;
|
||||||
|
margin: .5em;
|
||||||
|
padding: .3em 0;
|
||||||
|
height: 1.6em;
|
||||||
|
border-radius: 4px;
|
||||||
|
}
|
||||||
|
.items li:hover {
|
||||||
|
color: #607D8B;
|
||||||
|
background-color: #DDD;
|
||||||
|
left: .1em;
|
||||||
|
}
|
||||||
|
.items li.selected {
|
||||||
|
background-color: #CFD8DC;
|
||||||
|
color: white;
|
||||||
|
}
|
||||||
|
.items li.selected:hover {
|
||||||
|
background-color: #BBD8DC;
|
||||||
|
}
|
||||||
|
.items .text {
|
||||||
|
position: relative;
|
||||||
|
top: -3px;
|
||||||
|
}
|
||||||
|
.items .badge {
|
||||||
|
display: inline-block;
|
||||||
|
font-size: small;
|
||||||
|
color: white;
|
||||||
|
padding: 0.8em 0.7em 0 0.7em;
|
||||||
|
background-color: #607D8B;
|
||||||
|
line-height: 1em;
|
||||||
|
position: relative;
|
||||||
|
left: -1px;
|
||||||
|
top: -4px;
|
||||||
|
height: 1.8em;
|
||||||
|
margin-right: .8em;
|
||||||
|
border-radius: 4px 0 0 4px;
|
||||||
|
}
|
||||||
|
/* everywhere else */
|
||||||
|
* {
|
||||||
|
font-family: Arial, Helvetica, sans-serif;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/*
|
||||||
|
Copyright 2016 Google Inc. All Rights Reserved.
|
||||||
|
Use of this source code is governed by an MIT-style license that
|
||||||
|
can be found in the LICENSE file at http://angular.io/license
|
||||||
|
*/"><input type="hidden" name="files[app/app.component.html]" value="<h1>My First Attribute Directive</h1>
|
||||||
|
|
||||||
|
<h4>Pick a highlight color</h4>
|
||||||
|
<div>
|
||||||
|
<input type="radio" name="colors" (click)="color='lightgreen'">Green
|
||||||
|
<input type="radio" name="colors" (click)="color='yellow'">Yellow
|
||||||
|
<input type="radio" name="colors" (click)="color='cyan'">Cyan
|
||||||
|
</div>
|
||||||
|
<p [myHighlight]="color">Highlight me!</p>
|
||||||
|
|
||||||
|
<p [myHighlight]="color" defaultColor="violet">
|
||||||
|
Highlight me too!
|
||||||
|
</p>
|
||||||
|
|
||||||
|
<hr>
|
||||||
|
<p><i>Mouse over the following lines to see fixed highlights</i></p>
|
||||||
|
|
||||||
|
<p [myHighlight]="'yellow'">Highlighted in yellow</p>
|
||||||
|
<p myHighlight="orange">Highlighted in orange</p>
|
||||||
|
|
||||||
|
|
||||||
|
<!--
|
||||||
|
Copyright 2016 Google Inc. All Rights Reserved.
|
||||||
|
Use of this source code is governed by an MIT-style license that
|
||||||
|
can be found in the LICENSE file at http://angular.io/license
|
||||||
|
-->"><input type="hidden" name="files[index.html]" value="<!DOCTYPE html>
|
||||||
|
<html>
|
||||||
|
<head>
|
||||||
|
<meta charset="UTF-8">
|
||||||
|
<title>Attribute Directives</title>
|
||||||
|
<script>document.write('<base href="' + document.location + '" />');</script>
|
||||||
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||||
|
<link rel="stylesheet" href="styles.css">
|
||||||
|
|
||||||
|
<!-- Polyfills -->
|
||||||
|
<script src="https://unpkg.com/core-js/client/shim.min.js"></script>
|
||||||
|
|
||||||
|
<script src="https://unpkg.com/zone.js@0.7.4?main=browser"></script>
|
||||||
|
<script src="https://unpkg.com/systemjs@0.19.39/dist/system.src.js"></script>
|
||||||
|
|
||||||
|
<script src="https://cdn.rawgit.com/angular/angular.io/b3c65a9/public/docs/_examples/_boilerplate/systemjs.config.web.js"></script>
|
||||||
|
<script>
|
||||||
|
System.import('main.js').catch(function(err){ console.error(err); });
|
||||||
|
</script>
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<my-app>loading...</my-app>
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
|
|
||||||
|
|
||||||
|
<!--
|
||||||
|
Copyright 2016 Google Inc. All Rights Reserved.
|
||||||
|
Use of this source code is governed by an MIT-style license that
|
||||||
|
can be found in the LICENSE file at http://angular.io/license
|
||||||
|
-->"><input type="hidden" name="tags[0]" value="angular"><input type="hidden" name="tags[1]" value="example"><input type="hidden" name="tags[2]" value="attribute"><input type="hidden" name="tags[3]" value="directive"><input type="hidden" name="private" value="true"><input type="hidden" name="description" value="Angular Example - Attribute Directive"></form><script>document.getElementById("mainForm").submit();</script></body></html>
|
@ -2,13 +2,19 @@
|
|||||||
<h1>My First Attribute Directive</h1>
|
<h1>My First Attribute Directive</h1>
|
||||||
<!-- #docregion applied -->
|
<!-- #docregion applied -->
|
||||||
<p myHighlight>Highlight me!</p>
|
<p myHighlight>Highlight me!</p>
|
||||||
<!-- #enddocregion applied, -->
|
<!-- #enddocregion applied -->
|
||||||
|
<!-- #enddocregion -->
|
||||||
|
|
||||||
<!-- #docregion color-1 -->
|
<!-- #docregion color-1 -->
|
||||||
<p myHighlight highlightColor="yellow">Highlighted in yellow</p>
|
<p myHighlight highlightColor="yellow">Highlighted in yellow</p>
|
||||||
<p myHighlight [highlightColor]="'orange'">Highlighted in orange</p>
|
<p myHighlight [highlightColor]="'orange'">Highlighted in orange</p>
|
||||||
|
|
||||||
<!-- #enddocregion color-1 -->
|
<!-- #enddocregion color-1 -->
|
||||||
|
|
||||||
<!-- #docregion color-2 -->
|
<!-- #docregion color-2 -->
|
||||||
<p myHighlight [highlightColor]="color">Highlighted with parent component's color</p>
|
<p myHighlight [highlightColor]="color">Highlighted with parent component's color</p>
|
||||||
<!-- #enddocregion color-2 -->
|
<!-- #enddocregion color-2 -->
|
||||||
|
|
||||||
|
<!-- #docregion p-style-background -->
|
||||||
|
<p [style.background]="'lime'">I am green with envy!</p>
|
||||||
|
<!-- #enddocregion p-style-background -->
|
@ -1,6 +1,7 @@
|
|||||||
import { Component } from '@angular/core';
|
import { Component } from '@angular/core';
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
|
moduleId: module.id,
|
||||||
selector: 'my-app',
|
selector: 'my-app',
|
||||||
templateUrl: './app.component.1.html'
|
templateUrl: './app.component.1.html'
|
||||||
})
|
})
|
||||||
@ -8,3 +9,4 @@ import { Component } from '@angular/core';
|
|||||||
export class AppComponent {
|
export class AppComponent {
|
||||||
color = 'yellow';
|
color = 'yellow';
|
||||||
}
|
}
|
||||||
|
// #enddocregion class
|
@ -1,4 +1,5 @@
|
|||||||
<!-- #docregion v2, -->
|
<!-- #docregion -->
|
||||||
|
<!-- #docregion v2 -->
|
||||||
<h1>My First Attribute Directive</h1>
|
<h1>My First Attribute Directive</h1>
|
||||||
|
|
||||||
<h4>Pick a highlight color</h4>
|
<h4>Pick a highlight color</h4>
|
||||||
@ -9,13 +10,15 @@
|
|||||||
</div>
|
</div>
|
||||||
<!-- #docregion color -->
|
<!-- #docregion color -->
|
||||||
<p [myHighlight]="color">Highlight me!</p>
|
<p [myHighlight]="color">Highlight me!</p>
|
||||||
<!-- #enddocregion color, v2 -->
|
<!-- #enddocregion color -->
|
||||||
|
<!-- #enddocregion v2 -->
|
||||||
|
|
||||||
<!-- #docregion defaultColor -->
|
<!-- #docregion defaultColor -->
|
||||||
<p [myHighlight]="color" defaultColor="violet">
|
<p [myHighlight]="color" defaultColor="violet">
|
||||||
Highlight me too!
|
Highlight me too!
|
||||||
</p>
|
</p>
|
||||||
<!-- #enddocregion defaultColor, -->
|
<!-- #enddocregion defaultColor -->
|
||||||
|
<!-- #enddocregion -->
|
||||||
|
|
||||||
<hr>
|
<hr>
|
||||||
<p><i>Mouse over the following lines to see fixed highlights</i></p>
|
<p><i>Mouse over the following lines to see fixed highlights</i></p>
|
@ -2,6 +2,7 @@
|
|||||||
import { Component } from '@angular/core';
|
import { Component } from '@angular/core';
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
|
moduleId: module.id,
|
||||||
selector: 'my-app',
|
selector: 'my-app',
|
||||||
templateUrl: './app.component.html'
|
templateUrl: './app.component.html'
|
||||||
})
|
})
|
||||||
@ -9,3 +10,5 @@ import { Component } from '@angular/core';
|
|||||||
export class AppComponent {
|
export class AppComponent {
|
||||||
color: string;
|
color: string;
|
||||||
}
|
}
|
||||||
|
// #enddocregion class
|
||||||
|
// #enddocregion
|
@ -10,6 +10,17 @@ export class HighlightDirective {
|
|||||||
// #docregion ctor
|
// #docregion ctor
|
||||||
constructor(private el: ElementRef) { }
|
constructor(private el: ElementRef) { }
|
||||||
// #enddocregion ctor
|
// #enddocregion ctor
|
||||||
|
// #enddocregion
|
||||||
|
|
||||||
|
// #docregion color
|
||||||
|
@Input() highlightColor: string;
|
||||||
|
// #enddocregion color
|
||||||
|
|
||||||
|
// #docregion color-2
|
||||||
|
@Input() myHighlight: string;
|
||||||
|
// #enddocregion color-2
|
||||||
|
|
||||||
|
// #docregion
|
||||||
|
|
||||||
// #docregion mouse-methods, host
|
// #docregion mouse-methods, host
|
||||||
@HostListener('mouseenter') onMouseEnter() {
|
@HostListener('mouseenter') onMouseEnter() {
|
||||||
@ -28,14 +39,7 @@ export class HighlightDirective {
|
|||||||
private highlight(color: string) {
|
private highlight(color: string) {
|
||||||
this.el.nativeElement.style.backgroundColor = color;
|
this.el.nativeElement.style.backgroundColor = color;
|
||||||
}
|
}
|
||||||
// #enddocregion mouse-methods,
|
// #enddocregion mouse-methods
|
||||||
|
|
||||||
// #docregion color
|
|
||||||
@Input() highlightColor: string;
|
|
||||||
// #enddocregion color
|
|
||||||
|
|
||||||
// #docregion color-2
|
|
||||||
@Input() myHighlight: string;
|
|
||||||
// #enddocregion color-2
|
|
||||||
}
|
}
|
||||||
|
// #enddocregion
|
@ -1,5 +1,7 @@
|
|||||||
/* tslint:disable:member-ordering */
|
/* tslint:disable:member-ordering */
|
||||||
// #docregion imports,
|
// #docplaster
|
||||||
|
// #docregion
|
||||||
|
// #docregion imports
|
||||||
import { Directive, ElementRef, HostListener, Input } from '@angular/core';
|
import { Directive, ElementRef, HostListener, Input } from '@angular/core';
|
||||||
// #enddocregion imports
|
// #enddocregion imports
|
||||||
|
|
File diff suppressed because one or more lines are too long
@ -4,6 +4,7 @@ import { MovieService } from './movie.service';
|
|||||||
import { IMovie } from './movie';
|
import { IMovie } from './movie';
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
|
moduleId: module.id,
|
||||||
selector: 'my-app',
|
selector: 'my-app',
|
||||||
templateUrl: './app.component.html',
|
templateUrl: './app.component.html',
|
||||||
styleUrls: [ './app.component.css' ],
|
styleUrls: [ './app.component.css' ],
|
@ -8,6 +8,7 @@ import { MovieService } from './movie.service';
|
|||||||
|
|
||||||
// #docregion component
|
// #docregion component
|
||||||
@Component({
|
@Component({
|
||||||
|
moduleId: module.id,
|
||||||
selector: 'movie-list',
|
selector: 'movie-list',
|
||||||
templateUrl: './movie-list.component.html',
|
templateUrl: './movie-list.component.html',
|
||||||
// #docregion style-url
|
// #docregion style-url
|
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user