2481 Commits

Author SHA1 Message Date
Alex Eagle
a26dd28bdb refactor(upgrade): re-export the new static upgrade APIs on new entry
Add upgrade-static.umd.js bundles
This allows depending on it without getting a transitive dependency on compiler.

BREAKING CHANGE:

Four newly added APIs in 2.2.0-beta:
downgradeComponent, downgradeInjectable, UpgradeComponent, and UpgradeModule
are no longer exported by @angular/upgrade.
Import these from @angular/upgrade/static instead.
2016-10-26 15:14:22 -07:00
Jeremy Elbourn
c9f58cf78c feat(router): export routerLinkActive w/ isActive property 2016-10-26 14:08:22 -07:00
Filipe Silva
4c85f0a91d chore: update to 2.1.1 (#2650) 2016-10-21 22:31:09 +01:00
Filipe Silva
0d49fecd30 chore: update to @types (#1872)
* chore: update examples to @types
* fix toh-6 aot and add types link
2016-10-20 17:01:16 -07:00
Patrice Chalin
75f37b76eb chore: Dart API doc gen cleanup and refactoring (#2641)
- gulp task: don’t copy over internal libraries.
- Adjust anchor hrefs rather than use `<base href>` in generated API
pages. The net effect is the same.
2016-10-20 22:29:08 +01:00
Victor Savkin
8b9ab44eee feat(router): add support for ng1/ng2 migration (#12160) 2016-10-20 10:44:44 -07:00
Peter Bacon Darwin
d6791ff0e0 feat(ngUpgrade): add support for AoT compiled upgrade applications
This commit introduces a new API to the ngUpgrade module, which is compatible
with AoT compilation. Primarily, it removes the dependency on reflection
over the Angular 2 metadata by introducing an API where this information
is explicitly defined, in the source code, in a way that is not lost through
AoT compilation.

This commit is a collaboration between @mhevery (who provided the original
design of the API); @gkalpak & @petebacondarwin (who implemented the
API and migrated the specs from the original ngUpgrade tests) and @alexeagle
(who provided input and review).

This commit is an starting point, there is still work to be done:

* add more documentation
* validate the API via internal projects
* align the ngUpgrade compilation of A1 directives closer to the real A1
  compiler
* add more unit tests
* consider support for async `templateUrl` A1 upgraded components

Closes #12239
2016-10-19 15:27:49 -07:00
Dzmitry Shylovich
445e5922ec feat(forms): make 'parent' a public property of 'AbstractControl' (#11855) 2016-10-19 09:55:50 -07:00
Florian Kinder
b9fc090143 feat(forms): Added emitEvent to AbstractControl methods (#11949)
* feat(forms): Added emitEvent to AbstractControl methods

* style(forms): unified named parameter
2016-10-19 09:54:54 -07:00
Cédric Exbrayat
592f40aa9c feat(forms): add hasError and getError to AbstractControlDirective (#11985)
Allows cleaner expressions in template-driven forms.

Before:

    <label>Username</label><input name="username" ngModel required #username="ngModel">
    <div *ngIf="username.dirty && username.control.hasError('required')">Username is required</div>

After:

    <label>Username</label><input name="username" ngModel required #username="ngModel">
    <div *ngIf="username.dirty && username.hasError('required')">Username is required</div>

Fixes #7255
2016-10-19 09:49:02 -07:00
Dzmitry Shylovich
bf60418fdc feat(forms): Validator.pattern accepts a RegExp (#12323) 2016-10-19 09:37:54 -07:00
Matias Niemelä
6e5f8b59b3 fix(animations): generate aot code for animation trigger output events (#12291)
Closes #11707
Closes #12291
2016-10-18 17:16:51 -07:00
Filipe Silva
19a9e355a1 fix(plunkers):use correct tsconfig (#2611) 2016-10-15 15:29:32 +02:00
Connor Wyatt
17e3410d98 Form submit event (#11989)
* feat(forms): ngSubmit event exposes $event from original submit event as local variable

Modify NgForm directive and FormGroup directive to expose the original submit event as $event in the ngSubmit event. Modify docs to reflect changes.

This resolves #10920.

* refactor: code cleanup
2016-10-11 15:49:36 -07:00
Karl Seamon
5effc330ed feat(upgrade): compilerOptions in bootstrap (#10575) 2016-10-11 15:48:08 -07:00
Igor Minar
bcef5efffe fix(platform-browser-dynamic): mark platformBrowserDynamic as stable API (#12154)
Everyone building Angular apps need to use this api to bootstrap or AoT compile, so it can't be experimental.
2016-10-07 13:54:06 -07:00
Filipe Silva
5042b3021c chore(test): add protractor4 (#2233)
* chore(test): add protractor4

* fix lint, remove boilerplate files, fix less gen

* separate scripts between package.json

* ignore a2docs.css in boilerplate

* remove tslint in _examples
2016-10-06 15:25:52 -07:00
Victor Berchet
cf269d9ff4 refactor: add license header to JS files & format files (#12081) 2016-10-04 20:39:20 -07:00
Chuck Jazdzewski
43d3a84df3 Revert "refactor: add license header to JS files & format files (#12035)"
This reverts commit 8310c918236c2bc085a0fd4278ee96106c5c2f1a.
2016-10-04 14:06:41 -07:00
Victor Berchet
8310c91823 refactor: add license header to JS files & format files (#12035) 2016-10-04 13:15:49 -07:00
Victor Berchet
ed9c2b6281 fix(Header): preserve case of the first init, set() or append() (#12023)
fixes #11624
2016-10-03 15:27:56 -07:00
Patrice Chalin
db6625eb30 Fix dartdoc styles and prep layout for ng2 pages (#2530)
- Use custom bootstrap grid system styles
- Cache a copy of the dartdoc static-assets styles.css w/ footer styles
disabled.
- Alternate page layout controlled by jade2ng harp global
2016-10-03 14:58:50 -07:00
Victor Berchet
f23b22a0f4 refactor: misc cleanup 2016-09-22 11:01:16 -07:00
Igor Minar
3a6fcee0e6 docs(core): mark TestBed as stable api and add preliminary docs (#11767)
TestBed was accidentaly ommited from the 'stable' api list during the API sweep before final. We do consider it to be stable.
2016-09-22 10:32:17 -07:00
Jesús Rodríguez
fe220a5cab chore: fix zone.js for plunkers (#2421) 2016-09-21 14:19:22 +02:00
vsavkin
676bb0fa7d feat(router): update dts files 2016-09-20 14:53:52 -07:00
Ward Bell
03680e23bb chore: more "angular2" to "angular" cleanup (#2417) 2016-09-20 11:37:16 +02:00
Jesús Rodríguez
693f6ae462 chore: rename Angular 2 to simply Angular (#2402) 2016-09-19 20:24:40 -07:00
Victor Berchet
671f73448c refactor: misc cleanup (#11654) 2016-09-19 17:15:57 -07:00
Victor Berchet
0621f07a2c refactor: misc cleanup 2016-09-19 16:24:31 -07:00
Victor Berchet
0dc15eb64a fix(ContentChild): query descendants by default
fixes #1645
2016-09-19 10:42:46 -07:00
Kara
fa4723a208 docs(forms): add radio button examples (#11676) 2016-09-19 10:41:20 -07:00
Marc Laval
14ee75924b fix(common): fix ngOnChanges signature of NgTemplateOutlet directive 2016-09-15 11:00:30 -07:00
Filipe Silva
24c61dd7bc chore: here we are (#2353) 2016-09-15 02:41:19 +01:00
Alex Wolfe
65db6b9268 design(style): Restyle changes from Alex 2016-09-14 17:18:55 -07:00
vsavkin
42f60ca303 docs(core): update dts file 2016-09-14 15:27:33 -07:00
Igor Minar
7ed5d08af2 fix ngModule tag, api-list and json encoding 2016-09-14 15:13:41 -07:00
vsavkin
15c2912527 chore(core): update public api file 2016-09-14 14:53:30 -07:00
Patrice Chalin
33398281a2 chore(api-builder): use Jade include rather than Harp partial 2016-09-14 14:06:14 -07:00
vsavkin
b38939c7f4 temp disable docs merger 2016-09-14 14:05:38 -07:00
vsavkin
ec72c8007e fix: merge the decorator data with the symbol 2016-09-14 14:05:38 -07:00
Alex Eagle
5fad37df69 Revert "chore(core): update public api file"
This reverts commit 727c2b38a4355e3ecb708487aa377ed54e4e8375.

Revert "docs(core): updates query decorator docs"

This reverts commit b6287ccc5126da9c1a052bd28b3a9e2743f67eae.

Revert "docs(core): extract how to examples"

This reverts commit 69e8ace8848e55c9605c1feab7d642bf46bddb4e.
2016-09-14 13:34:25 -07:00
vsavkin
727c2b38a4 chore(core): update public api file 2016-09-14 13:22:09 -07:00
Tobias Bosch
1a035a0dc7 build(examples): include in main tsconfig.json
Also rename `examples/tsconfig.json` into `examples/tsconfig-build.json`
so that it does not shadow the main `tsconfig.json` in editors

Also adds `noImplicitAny` and `declarations`
`examples/tsconfig.json`.
2016-09-14 11:29:31 -07:00
Patrice Chalin
e70dec57a0 docs(dart/api): clean out styles from api template
The removed linked stylesheets are causing problems under the refreshed
site styling scheme.
2016-09-14 10:49:01 -07:00
Peter Bacon Darwin
9c55afdfde fix(api-builder): pass versionInfo to macros
The update to dgeni-packages led to a breaking change in the Nunjucks
templates, where macros are now isolated from their calling site.

This means that we must pass the `versionInfo` object through to the
macro rather than expecting it to be in scope already.
2016-09-14 07:39:06 -07:00
Peter Bacon Darwin
40a1279fb9 chore(api-builder): add ngModule dgeni tag 2016-09-13 22:13:18 -07:00
Ward Bell
07cfce795f docs(testing): testing chapter and samples for RC6 (#2198)
[WIP] docs(testing): new chapter, new samples
2016-09-13 14:39:39 -07:00
Igor Minar
87981260e0 fix(api-builder): ignore all symbols starting with _ 2016-09-13 09:20:58 -07:00
Jesús Rodríguez
988694bb12 chore: update docs to rc7 2016-09-13 08:48:45 -07:00