Victor Berchet
307c4693dc
refactor(router): code cleanup
2016-12-05 10:54:10 -08:00
Victor Berchet
82c81cd0d2
fix(common): make sure the plural category exists ( #13169 )
...
fixes #12379
2016-12-01 13:26:24 -08:00
Victor Savkin
e628b66cca
feat(build): record angular version in the dom ( #13164 )
2016-11-30 13:52:08 -08:00
Tim Blair
4a09251921
doc(common): fix a typo in async pipe
2016-11-28 14:11:45 -08:00
Alex Eagle
664a6273e1
feature(tsc-wrapped): add option for closure compiler JSDoc annotations
2016-11-18 09:37:40 -08:00
Joao Dias
77ee27c59e
refactor(): use const and let instead of var
2016-11-12 16:40:17 -08:00
Bruno da Silva joão
2aba8b0ff2
fix(common): no TZ Offset added by DatePipe for dates without time ( #12380 )
2016-11-10 14:57:04 -08:00
Dzmitry Shylovich
3dc61779f0
fix(DatePipe): handle empty string ( #12374 )
2016-11-08 15:45:12 -08:00
Victor Berchet
4708b248d5
fix(common): I18nSelectPipe selects other case on default
2016-11-08 15:44:18 -08:00
Pawel Kozlowski
f3793b5953
fix(NgClass): throw a descriptive error when CSS class is not a string ( #12662 )
...
Fixes #12586
2016-11-07 12:23:31 -08:00
Tobias Bosch
d8f23f4b7f
fix(common): `NgSwitch` - don’t create the default case if another case matches ( #12726 )
...
This also simplifies the implementation of `NgSwitch`.
Closes #11297
Closes #9420
2016-11-07 12:22:36 -08:00
Trotyl Yu
4aaae3eada
docs(common): fix a typo in ngStyle API docs
2016-11-03 10:27:05 -07:00
Tobias Bosch
74ede9aa9b
refactor(core): don’t store view factory in `TemplateRef`
...
Instead, generate `createEmbeddedView`.
2016-11-02 17:06:27 -07:00
Michael George Attard
3045d02b9a
docs(pipes): minor fix and improvements
2016-10-31 12:39:21 +01:00
Victor Berchet
7b8dae19af
refactor(facade): cleanup Intl facade
2016-10-28 15:52:52 -07:00
michaelgeorgeattard
02f1222a8d
docs(common): minor corrections/improvements for NgClass ( #12327 )
2016-10-25 00:12:09 +02:00
Victor Berchet
76dd026447
refactor: remove some facades ( #12335 )
2016-10-19 13:42:39 -07:00
Andrei Tserakhau
f77ab6a2d2
feat(datePipe): support narrow forms for month and weekdays ( #12297 )
...
Closes #12294
2016-10-19 10:05:13 -07:00
John Anthony
d61ecf0663
docs(NgSwitch): fix mismatched tags in example ( #12270 )
2016-10-17 22:51:56 -07:00
Michael George Attard
a5419608e0
docs(ngIf): minor improvements
2016-10-17 22:50:12 -07:00
Michael George Attard
5f95bf1dd2
refactor(common): remove redundant type
2016-10-17 22:50:12 -07:00
Victor Berchet
fdf4309b50
perf(common): optimize NgSwitch default case
...
relates to #11297
2016-10-12 17:11:46 -07:00
Alex Eagle
8c975ed156
refactor(facade): inline StringWrapper ( #12051 )
2016-10-06 15:10:27 -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 8310c91823
.
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
Alex Eagle
decd129a4d
refactor(facade): remove DateWrapper ( #12027 )
2016-10-02 14:12:14 -07:00
Victor Berchet
3898dc488e
fix(BrowserAdapter): correctly removes styles on IE
...
fixes #7916
2016-09-30 11:18:17 -07:00
Alex Eagle
0286956107
refactor(facade): Inline isBlank called with object-type argument ( #11992 )
2016-09-30 09:26:53 -07:00
Alex Eagle
41c8c30973
chore(lint): remove unused imports ( #11923 )
...
This was done automatically by tslint, which can now fix issues it finds.
The fixer is still pending in PR https://github.com/palantir/tslint/pull/1568
Also I have a local bugfix for https://github.com/palantir/tslint/issues/1569
which causes too many imports to be deleted.
2016-09-27 17:12:25 -07:00
Victor Berchet
0ca971c5bd
refactor(common): cleanup ( #11668 )
2016-09-22 10:34:00 -07:00
Victor Berchet
5509453e72
refactor(common): pipe code cleanup
2016-09-19 16:19:28 -07:00
Jason Choi
df4254ae89
refactor(facade): move isPromise to core private ( #10573 )
2016-09-18 15:55:08 -07:00
Marc Laval
14ee75924b
fix(common): fix ngOnChanges signature of NgTemplateOutlet directive
2016-09-15 11:00:30 -07:00
Naomi Black
cfc12c6539
docs(api): changes to correct jade errors in API doc gen ( #11619 )
2016-09-15 09:09:00 -07:00
Igor Minar
cb657c4b55
docs: update descriptions in package.jsons
2016-09-14 16:44:39 -07:00
Victor Berchet
9cee8bcc83
docs(common): add directives docs
...
Closes #11581
2016-09-14 15:24:01 -07:00
Misko Hevery
2c42a50fc3
docs(pipes): updated pipe documentation
2016-09-14 14:32:09 -07:00
Victor Berchet
7b82877ee5
fix(Localization): BCP47 uses hyphens as separator ( #11514 )
...
https://tools.ietf.org/html/bcp47
2016-09-12 11:27:15 -07:00
Victor Berchet
82f30e09f0
refactor(common): cleanup directive tests
2016-09-09 14:30:18 -07:00
Victor Berchet
c649a5c5ab
refactor(common): cleanup directives
2016-09-09 14:30:18 -07:00
Victor Berchet
2170379251
refactor(common): cleanup, strip deprecated doc ( #11469 )
2016-09-09 12:05:06 -07:00
Victor Berchet
5a4e46db20
refactor(tests): simplify code ( #11485 )
2016-09-09 12:04:38 -07:00
Victor Berchet
f5d44a42c9
refactor(NgClass): cleanup, readability ( #11467 )
2016-09-09 12:03:51 -07:00
Rob Wormald
d296298282
fix(build): prevent package tsconfigs from shadowing main tsconfig ( #11454 )
2016-09-08 15:01:22 -07:00
Trotyl Yu
dd03bf12e1
docs: misc fixes.
...
docs(common_module): Fix macro format
docs(number_pipe): Add missing period sign
docs(date_pipe): Fix suffix consistency
docs(date_pipe): Fix missing quote
docs(number_pipe): Fix incorrect article
Looks like the word "Polyfill" does not start with a vowel pronunciation.
docs(location_strategy): Fix code format
Add missing \`\`\` at start.
docs(i18n_plural_pipe): Fix code format
docs(location): Add missing period sign
refactor(ngSwitch): fix typo on parameter
docs(di): Add missing quote
docs(compiler): Fix typo
docs(compiler): Add missing period sign
docs(directives): Fix description for styles parameter
docs(location_strategy): Add code language
Revert for misunderstanding.
2016-09-06 15:45:37 -07:00
Marc Laval
c25d1f7ecc
test: reactivate the remaining disabled tests in Edge ( #11188 )
...
Fixes #4756
2016-09-06 10:24:48 -07:00
Marc Laval
1b5e2b5129
test: add Intl polyfill and run Intl tests in all browsers ( #10471 )
2016-08-31 15:55:13 -07:00
Victor Berchet
1df69cb4d2
fix(DomSchemaRegistry): detect invalid elements
2016-08-30 21:32:03 -07:00
Igor Minar
174c016104
fix(bundles): correct RxJS mapping in rollup config for umd/es5 bundles
2016-08-30 21:07:45 -07:00
Miško Hevery
979657989b
fix(packages): use ES modules for primary build ( #11120 )
2016-08-30 18:07:40 -07:00
Misko Hevery
7c07bfff97
fix(errors): [2/2] Rename Exception to Error; remove from public API
...
BREAKING CHANGE:
Exceptions are no longer part of the public API. We don't expect that anyone should be referring to the Exception types.
ExceptionHandler.call(exception: any, stackTrace?: any, reason?: string): void;
change to:
ErrorHandler.handleError(error: any): void;
2016-08-26 10:37:17 -07:00
Misko Hevery
86ba072758
fix(errors): [1/2] Rename Exception to Error; remove from public API
2016-08-26 10:37:17 -07:00
Victor Berchet
0a053a4cd5
fix(i18n): Currency/Date/Number pipe use injected locale ( #11093 )
2016-08-26 09:16:01 -07:00
Igor Minar
1f5a5895e5
refactor(common): rename UrlChangeEvent and UrlChangeListener to LocationChangeEvent and LocationChangeListener
...
These apis are not expected to be used anyone, hence I'm not documenting this change as a breaking.
2016-08-25 13:29:03 -07:00
Igor Minar
8a2324f86a
docs(common): mark all common apis except for i18n as stable
2016-08-25 13:29:03 -07:00
Igor Minar
6335b31702
refactor(common): remove COMMON_DIRECTIVES, COMMON_PIPES, CORE_DIRECTIVES that were replace with CommonModule
2016-08-25 13:29:03 -07:00
Luka Pejovic
c02325dd06
docs(DatePipe): add AM/PM designator in description #10998
2016-08-23 11:57:41 -07:00
Igor Minar
3c2b2ff332
test: fix existing tests by removing usage of obsolete stuff like component level directives, AsyncCompleter and TestComponentBuilder
2016-08-23 09:59:00 -07:00
Chuck Jazdzewski
39a2c39cef
feat(compiler): Added "strictMetadataEmit" option to ngc ( #10951 )
...
ngc can now validate metadata before emitting to verify it doesn't
contain an error symbol that will result in a runtime error if
it is used by the StaticReflector.
To enable this add the section,
"angularCompilerOptions": {
"strictMetadataEmit": true
}
to the top level of the tsconfig.json file passed to ngc.
Enabled metadata validation for packages that are intended to be
used statically.
2016-08-22 17:37:48 -07:00
John-David Dalton
91980382e8
fix(pipes): remove bidi control chars ( #10870 )
...
Fix inconsistent results in Edge vs. other browsers.
Closes #10080 .
2016-08-18 13:31:33 -07:00
Suguru Inatomi
3c23238129
docs(ngFor): add documentation for ngForTrackBy ( #10780 )
...
* docs(ngFor): add documentation for ngForTrackBy
* wo/ prefix
2016-08-16 19:39:22 -07:00
Igor Minar
73a9ee4a05
Remove component resolver ( #10858 )
...
* refactor(core): remove deprecated ComponentResolver
BREAKING CHANGE: deprecated ComponentResolver was removed
Please follow deprecation instruction and migrate your code to use ComponentFactoryResolver.
* refactor(common): remove deprecated NgSwitchWhen directive
BREAKING CHANGE: previously deprecated NgSwitchWhen directive was removed, use NgSwitchCase instead
2016-08-16 16:48:32 -07:00
Victor Savkin
f7ff6c5a12
refactor(core): remove deprecated 'bootstrap' ( #10831 )
2016-08-16 11:15:01 -07:00
Miško Hevery
bec5c5fdad
refactor(Provider): remove deprecated provider/bind API ( #10652 )
...
Closes #9751
BREAKING CHANGE:
These forms of providers are no longer accepted:
bind(MyClass).toFactory(...)
new Provider(MyClass, toFactory: ...)
We now only accept:
{provider: MyClass, toFactory: ...}
2016-08-15 19:37:42 -07:00
mgiambalvo
231ed69507
refactor(common): Remove uses of deprecated TestComponentBuilder. ( #10754 )
...
* ng_class_spec
* Working through ng_for_spec.
* Finishing up ng_for_spec.
* Finish the rest of the specs.
* Convert pipes tests.
2016-08-15 13:52:57 -07:00
Andrei Tserakhau
712c7d5c3b
fix(datePipe): allow float for date pipe input ( #10687 )
2016-08-14 10:05:21 -07:00
Victor Berchet
ce4eae65a7
feat(i18n): provide LOCALE_ID and NgLocalization
2016-08-13 06:18:25 -07:00
Victor Berchet
4df48b202c
fix(i18n): update NgLocalLocalization ( #10771 )
...
ref https://github.com/papandreou/node-cldr/issues/31
2016-08-13 05:43:36 -07:00
Igor Minar
33ced7088f
refactor(common): remove deprecated ReplacePipe ( #10772 )
...
BREAKING CHANGE: previously deprecated ReplacePipe was removed
2016-08-12 21:50:57 -07:00
Victor Berchet
161a4dd15f
feat(i18n): Add NgLocaleLocalization which returns plural cases given a locale ( #10744 )
2016-08-12 14:46:06 -07:00
Victor Savkin
04c6b2fe85
fix(router): location changes and redirects break the back button ( #10742 )
2016-08-12 14:30:51 -07:00
Kara
7606c96c80
fix(forms): remove deprecated forms APIs ( #10624 )
...
BREAKING CHANGE:
The deprecated forms APIs in @angular/common have been removed. Please update to the new forms API in @angular/forms. See angular.io for more information.
2016-08-11 20:40:46 -07:00
Miško Hevery
b96869afd2
refactor(Type): merge Type and ConcreType<?> into Type<?> ( #10616 )
...
Closes #9729
BREAKING CHANGE:
`Type` is now `Type<T>` which means that in most cases you have to
use `Type<any>` in place of `Type`.
We don't expect that any user applications use the `Type` type.
2016-08-10 18:21:28 -07:00
Alex Eagle
6f4ee6101c
chore(imports): don't import ExceptionHandler from facade ( #10620 )
...
This lets us skip src/facade/exception* when compiling modules other than core.
It prevents having many conflicting declarations
2016-08-10 15:55:18 -07:00
Jason Choi
99989f5d3f
chore(facade): remove most facade/async functions
2016-08-05 12:26:28 -07:00
Jason Choi
83e2d3d1cb
refactor(RegExpWrapper): remove the facade ( #10512 )
2016-08-05 09:50:49 -07:00
Victor Berchet
0ca05eee45
feat(ExpressionParser): add support for `this`
2016-08-05 09:45:13 -07:00
Victor Berchet
26c9e1dc70
refactor(NgFor spec): code cleanup
2016-08-05 09:45:13 -07:00
Pawel Kozlowski
797cb5ae7b
refactor(NgStyleSpec): simplify NgStyle tests ( #10519 )
2016-08-05 09:28:08 -07:00
Pawel Kozlowski
ce5ba80792
refactor(NgTemplateOutlet): simplify implementation ( #10492 )
2016-08-04 11:28:36 -07:00
Pawel Kozlowski
8b18ef4ba2
feat(NgStyle): add support for the style.unit notation ( #10496 )
...
Closes #10326
2016-08-04 11:00:43 -07:00
Marc Laval
cd18de7a21
refactor(compiler): use Object.keys instead of Object.getOwnPropertyNames ( #10498 )
2016-08-04 10:35:41 -07:00
Chuck Jazdzewski
9925aa89dc
fix(compiler): Report references to non-exported symbols.
...
Includes fixes to places now reported as errors.
Part of #8310
2016-08-03 15:42:38 -07:00
Tobias Bosch
8e6091de6c
refactor(core): use `ngOnDestroy` in providers
...
Note about the addition of `beforeEach(fakeAsync(inject(…))))` in some tests:
`ApplicationRef` is now using `ngOnDestroy` and there is eager,
including all of its dependencies which contain `NgZone`.
The additional `fakeAsync` in `beforeEach` ensures that `NgZone`
uses the fake async zone as parent, and not the root zone.
BREAKING CHANGE (via deprecations):
- `ApplicationRef.dispose` is deprecated. Destroy the module that was
created during bootstrap instead by calling `NgModuleRef.destroy`.
- `AplicationRef.registerDisposeListener` is deprecated.
Use the `ngOnDestroy` lifecycle hook for providers or
`NgModuleRef.onDestroy` instead.
- `disposePlatform` is deprecated. Use `destroyPlatform` instead.
- `PlatformRef.dipose()` is deprecated. Use `PlatformRef.destroy()`
instead.
- `PlatformRef.registerDisposeListener` is deprecated. Use
`PlatformRef.onDestroy` instead.
- `PlaformRef.diposed` is deprecated. Use `PlatformRef.destroyed`
instead.
2016-08-02 11:23:26 -07:00
Michael
3ce11ed58c
docs(pipes): update I18nSelectPipe API documentation ( #10449 )
2016-08-02 10:59:07 -07:00
Victor Berchet
2dfc9c653b
refactor: dart
2016-08-01 11:34:51 -07:00
Victor Berchet
106db0aba8
refactor: IS_DART === false
2016-08-01 11:34:51 -07:00
Victor Berchet
28c4852cd6
refactor: remove ts2dart annotations
2016-08-01 11:34:51 -07:00
Matias Niemelä
e18626b7a2
fix(core): ensure ngFor only inserts/moves/removes elements when necessary ( #10287 )
...
Closes #9960
Closes #7239
Closes #9672
Closes #9454
Closes #10287
2016-08-01 11:09:52 -07:00
Marc Laval
b48f7bcb8d
fix(forms): normalize written value in NumberValueAccessor
...
Closes #10379
2016-07-29 18:18:30 +02:00
Tobias Bosch
d0a95e35af
refactor(testing): introduce new testing api to support ng modules
...
BREAKING CHANGE:
- deprecations:
* `withProviders`, use `TestBed.withModule` instead
* `addProviders`, use `TestBed.configureTestingModule` instead
* `TestComponentBuilder`, use `TestBed.configureTestModule` / `TestBed.override...` / `TestBed.createComponent` instead.
Closes #10354
2016-07-29 04:47:18 -07:00
Matias Niemelä
ba88db5141
fix(ngClass): do not deconstruct classes on element removal ( #10303 )
...
Prior to this fix [ngClass] would remove all dynamic classes
when destroyed. It's essential that classes are persisted such
that remove-based animations will still be stylistically correct.
This patch fixes this issue.
Closes #10008
Closes #10303
2016-07-26 15:20:27 -07:00
Kara
0aba42ae5b
fix(forms): throw error if wrong control container for reactive forms ( #10286 )
2016-07-26 10:08:46 -07:00
Tobias Bosch
46b212706b
refactor(core): change module semantics
...
This contains major changes to the compiler, bootstrap of the platforms
and test environment initialization.
Main part of #10043
Closes #10164
BREAKING CHANGE:
- Semantics and name of `@AppModule` (now `@NgModule`) changed quite a bit.
This is actually not breaking as `@AppModules` were not part of rc.4.
We will have detailed docs on `@NgModule` separately.
- `coreLoadAndBootstrap` and `coreBootstrap` can't be used any more (without migration support).
Use `bootstrapModule` / `bootstrapModuleFactory` instead.
- All Components listed in routes have to be part of the `declarations` of an NgModule.
Either directly on the bootstrap module / lazy loaded module, or in an NgModule imported by them.
2016-07-26 07:04:10 -07:00
Victor Berchet
b652a7fc9f
chore: remove obsolete files ( #10240 )
2016-07-22 16:18:31 -07:00
Jason Choi
64fc4648b7
fix(testing): correctly import NgMatchers ( #10077 )
...
Some test cases incorrectly rely on the side effect of other test cases
importing `NgMatchers`. This commit fixes this by making `expect` in
`core/testing_internal` properly typed.
2016-07-22 09:20:51 -07:00
Victor Berchet
d455942389
fix(CurrencyPipe): use default Intl formatting options when none provided
...
fixes #10189
2016-07-22 08:21:31 -07:00
Victor Berchet
00aa7a76b6
chore(tests): enable lint, make it green. ( #10224 )
2016-07-21 17:12:00 -07:00
vsavkin
db54a84d14
fix(router): routerLinkActive should only set classes after the router has successfully navigated
2016-07-20 17:51:21 -07:00