Marek Buko
9f00a1b902
fix(forms): add select multiple accessor as built-in accessor
2016-06-26 16:24:27 -06:00
Julie Ralph
dcf75126bf
fix(common/testing): remove internal MockLocationStrategy from common/testing ( #9562 )
...
BREAKING CHANGE:
MockLocationStrategy was intended to be internal only and is now removed
from the `@angular/common/testing` public api.
Use `SpyLocation` from `@angular/common/testing` for location testing.
2016-06-24 12:41:57 -07:00
Julie Ralph
1143b0389a
fix(core/testing): move ComponentFixture to core ( #9386 )
...
BREAKING CHANGE:
`ComponentFixture` will be moving out of `@angular/compiler/testing` to `@angular/core/testing` in
this release. For now, it is deprecated from `@angular/compiler/testing`.
2016-06-24 12:41:49 -07:00
Julie Ralph
8a9e9c7bd3
fix(core/testing): clean up the core testing public API ( #9466 )
...
Previously, we were exporting internal mocks and helpers. Move these
to core/testing/testing_internal or remove them if they were
never used.
Remove deprecated items - injectAsync, clearPendingTimers.
BREAKING CHANGE:
Remove the following APIs from `@angular/core/testing`, which have been deprecated or were
never intended to be publicly exported:
```
injectAsync
clearPendingTimers
Log
MockAppliacationHref
MockNgZone
clearPendingTimers
getTypeOf
instantiateType
```
Instead of `injectAsync`, use `async(inject())`.
`clearPendingTimers` is no longer required.
2016-06-23 17:10:22 -07:00
Julie Ralph
3d8eb8cbca
fix(platform-browser/testing): clean up public api for platform-browser/testing ( #9519 )
...
Mostly, removing things that were never intended to be exported publicy.
BREAKING CHANGE:
The following are no longer publicly exported APIs. They were intended as internal
utilities and you should use your own util:
```
browserDetection,
dispatchEvent,
el,
normalizeCSS,
stringifyElement,
expect (and custom matchers for Jasmine)
```
2016-06-23 16:42:25 -07:00
Jason Choi
22d8f73bc9
test: add public api golden files
...
Includes a few style fixes on "* as foo" imports.
2016-06-23 14:26:40 -07:00
Igor Minar
5150344213
fix(common): add license header to localization.ts
2016-06-23 13:27:43 -07:00
Victor Berchet
fed1672a43
refactor(i18n): I18nPipe uses NgLocalization ( #9313 )
...
and some refactoring
2016-06-23 11:44:05 -07:00
ScottSWu
ae75e3640a
chore(lint): Added license headers to most TypeScript files
...
Relates to #9380
2016-06-23 09:47:54 -07:00
Victor Berchet
e1e5c40ef7
fix(testing): remove the `toThrowErrorWith` matcher (jasmine has `toThrowError`)
...
BREAKING CHANGE:
Before:
expect(...).toThrowErrorWith(msg);
After:
expect(...).toThrowError(msg);
2016-06-23 08:58:52 -07:00
Victor Berchet
398060d5ff
fix(NgSwitch): display deprecation message only once
2016-06-23 08:56:10 -07:00
Victor Berchet
c9c81e1fbc
fix(XmbSerializer): add meaning attribute, escape attribute values
2016-06-21 11:52:11 -07:00
Victor Berchet
ca42b49fa2
refactor: misc cleanup ( #9369 )
2016-06-20 10:55:29 -07:00
Misko Hevery
8675b8dc48
fix: cleanup public api of platform-server
...
BREAKING CHANGE: Parse5Adapter is no longer exported as public API, use serverBootstrap()
Parse5Adapter is an implementation detail not a public API
Closes #9237
Closes #9205
2016-06-19 09:03:01 -07:00
Andrei Tserakhau
2d60ff14ae
bug(datePipe): date format pipe's 2-digit interpretation of minutes and seconds ( #9338 )
...
Closes #9333
2016-06-18 09:03:58 -07:00
Andrei Tserakhau
5c8d3154d7
feat(datePipe): numeric string support
2016-06-17 15:58:06 -07:00
Victor Berchet
40f8a45b95
test(DatePipe): fixes
2016-06-17 15:48:26 -07:00
Victor Berchet
49bf3f5b3a
fix(NumberPipe): fix broken RegExp
...
introduced in 7498050421
(#9308 )
2016-06-17 15:33:25 -07:00
Victor Berchet
721f53f0d6
feat(I18N Expander): do not add extra `<ul>` & `<li>` around ICU messages ( #9283 )
...
fixes #9072
2016-06-17 11:38:24 -07:00
Victor Berchet
7498050421
refactor: misc ( #9308 )
2016-06-17 10:57:50 -07:00
Victor Berchet
5e3ccbcea9
refactor: add types ( #9288 )
2016-06-17 10:57:32 -07:00
Alex Eagle
37b617dccf
chore(tsickle): add @Annotation annotations
...
This lets users continue using runtime-sideeffect Decorators if they choose,
only down-leveling the marked ones to Annotations.
Also remove the "skipTemplateCodegen" option, which is no longer needed
since Angular compiles with tsc-wrapped rather than ngc. The former doesn't
include any codegen.
2016-06-16 12:29:46 -07:00
Kara Erickson
2fd1e88199
fix(forms): suppress forms deprecation warning after first
2016-06-15 08:52:56 -07:00
Victor Berchet
8a54c1a115
refactor(ViewBuilder): cleanup
2016-06-14 19:11:30 -07:00
Kara
22916bb5d1
feat(forms): add easy way to switch between forms modules ( #9202 )
2016-06-14 18:23:40 -07:00
Kara Erickson
a191e9697c
feat(forms): support setting control name in ngModelOptions
2016-06-13 16:57:10 -07:00
Kara Erickson
5c0cfdee48
fix(forms): separate ngModelGroup from formGroupName
2016-06-13 13:41:39 -07:00
Kara Erickson
61960c51a3
feat(forms): compose validator fns automatically if arrays
2016-06-13 11:41:32 -07:00
Kara Erickson
2b8d12ddf0
chore(forms): rename ngControl to formControlName
2016-06-12 13:17:36 -07:00
Victor Berchet
1f6fd3c8fc
refactor: add types ( #9148 )
2016-06-11 21:23:37 -07:00
Kara Erickson
7d9c1e1225
chore(forms): rename ngFormModel to formGroup
2016-06-10 19:10:17 -07:00
Kara Erickson
d53edfec47
chore(forms): rename ngFormControl to formControl
2016-06-10 17:28:19 -07:00
Kara Erickson
b866f32832
chore(forms): rename Control, ControlGroup, and ControlArray classes
2016-06-10 12:00:18 -07:00
Kara Erickson
97833d48c1
chore(templateOutlet): fix linting
2016-06-10 11:32:09 -07:00
Misko Hevery
9c0031f7a5
fix: broken build due to bad noImplicitAny merge
2016-06-10 10:35:36 -07:00
Shlomi Assaf
164a091c71
feat(NgTemplateOutlet): add context to NgTemplateOutlet
...
Closes #9042
2016-06-10 10:25:44 -07:00
Kara Erickson
4ed6cf7519
feat(forms): allow ngModel to register with parent form
2016-06-10 10:24:01 -07:00
Rob Wormald
e1fcab777c
fix(ngSwitch): use switchCase instead of switchWhen ( #9076 )
2016-06-09 22:52:30 -07:00
Alex Eagle
f39c9c9e75
style(lint): re-format modules/@angular
2016-06-09 17:00:15 -07:00
Idir Ouhab Meskine
9146bb0816
docs(DatePipe): Update date doc reference in date_pipe.ts ( #9081 )
2016-06-09 16:05:13 -07:00
Victor Berchet
7ce0fc7d47
refactor: add types ( #9116 )
2016-06-09 11:04:15 -07:00
Kara Erickson
e213939f28
chore(forms): fix implicit any
2016-06-08 17:08:59 -07:00
Kara Erickson
4c39eace52
feat(forms): add new forms folder
2016-06-08 16:41:08 -07:00
ScottSWu
86fbd50c3d
refactor(TypeScript): Add noImplicitAny
...
We automatically insert explicit 'any's where needed. These need to be
addressed as in #9100 .
Fixes #4924
2016-06-08 16:20:50 -07:00
Kara Erickson
50acb96130
fix(forms): update value and validity when controls are added
...
Closes #8826
2016-06-08 14:06:20 -07:00
Kara Erickson
515a8e0765
fix(forms): rename old forms folder to forms-deprecated
2016-06-08 11:21:58 -07:00
PatrickJS
994d9212c1
docs(NgControlName): correct exports name ( #9021 )
2016-06-04 19:48:50 -07:00
Victor Berchet
a6ad61d83e
refactor: change provide(...) for {provide: ...}
...
- provide() is deprecated,
- {} syntax is required by the offline compiler
2016-06-03 15:03:49 -07:00
Victor Berchet
27a47e7841
refactor(imports): simplify paths
2016-06-03 14:46:04 -07:00
Sekib Omazic
cf2d3cf920
style(pipes): cleanup unused imports
...
Remove unused imports from the pipes package. No impact on the code.
2016-06-03 09:58:57 -07:00
Igor Minar
70d944a59c
refactor: correct api modifier flags
2016-06-01 10:43:22 -07:00
Igor Minar
a5a422f8e7
refactor(NumberPipe): remove NumberPipe and replace it with private helper function
...
NumberPipe was just an implementation detail that we were accidentaly exposing as a public api.
2016-06-01 10:43:22 -07:00
Igor Minar
e93b3d2360
fix(Location): make Location#platformStrategy:LocationStrategy property private
...
BREAKING CHANGE: Location#platformStrategy property was previously accidentaly exported as public
If any application requires access to the current location strategy, it should be accessed via DI instead
by injecting the LocationStrategy token.
The likelyhood of anyone actually depending on this property is very low.
2016-06-01 10:43:22 -07:00
Igor Minar
7bc2d9a93a
docs: add api stability indicators for @angular/common
2016-06-01 10:43:22 -07:00
Tom
0c6b16c208
docs(async-pipe): include observable example ( #8900 )
...
Adds the missing example, usage case and a bit more description to the async-pipe.
2016-05-31 18:23:29 -07:00
Alex Eagle
c6064a30a1
chore(package.json): make the packages installable
2016-05-27 17:21:34 -07:00
Alex Eagle
2019050db2
chore(lint): enable duplicateModuleImport tslint check
2016-05-27 09:17:08 -07:00
Alex Eagle
ef0c32512c
chore(lint): enable semicolon and variable-name tslint checks
2016-05-26 15:46:03 -07:00
Andrei Tserakhau
324f0147f6
feat(common/datePipe): change date formatter to use correct pattern closes #7008 ( #8154 )
...
- add regular expression to parse date parts
- add date part creator function
- replace tokens in pattern to parsed parts
2016-05-26 12:06:29 -07:00
Nicholas Hydock
84f859d7b2
fix(Control): Support <select multiple> with Control class ( #8069 )
2016-05-26 12:01:49 -07:00
Anton Moiseev
420e83a396
feat(forms): add the submitted flag to NgForm and NgFormModel directives
...
Closes #2960
Closes #7449
2016-05-26 10:48:13 -07:00
Ivan Gabriele
00475f25c8
fix(doc): Add missing comma in example ( #8769 )
2016-05-26 09:50:59 -07:00
Victor Berchet
352ee53202
Revert "feat(AsyncPipe): allow onError argument"
...
This reverts commit 390046d7b3
.
CI fails for IE on win8.
PR #7990
2016-05-25 17:23:20 -07:00
Igor Minar
16dfe3c63f
build: consolidate tsc to ease migration to @types/ based typings delivery
...
I actually tried to use @types/* directly but came across several issues which prevented me
from switching over:
- https://github.com/Microsoft/TypeScript/issues/8715
- https://github.com/Microsoft/TypeScript/issues/8723
2016-05-25 08:22:07 -07:00
cexbrayat
83c19a1fbc
fix(pipes): handle undefined value in slice
...
Closes #7152
2016-05-24 20:58:14 -07:00
Kara Erickson
6dc88f5b61
fix(forms): radio buttons with different names should not share state
...
Closes #7051
2016-05-24 20:07:57 -07:00
Kara Erickson
7a2ce7ff21
fix(forms): update accessor value when native select value changes
...
Closes #8710
2016-05-24 20:03:49 -07:00
Victor Berchet
75e6dfb9ab
fix(browser): platform code cleanup
2016-05-23 17:57:28 -07:00
Tom Schoener
adc135e6c8
refactor(async_pipe): use subscription strategy interface
...
The strategies for Promise and Observable based subscriptions
have (nearly) the same method signatures. They should implement
a common interface.
Closes #7573
2016-05-23 17:02:56 -07:00
Ward Bell
0a872ffd38
feat(core/linker): add SimpleChanges type to lifecycle_hooks to simplify OnChanges signature
...
Closes #8557
2016-05-23 16:11:52 -07:00
Vamsi Varikuti
0795dd307b
refactor(chore): Replace all 'bindings' with 'providers'
...
BREAKING CHANGE
Deprecated `bindings:` and `viewBindings:` are replaced with
`providers:` and `viewProviders:`
Closes #7687
2016-05-23 13:31:08 -07:00
laco0416
abc266fa35
feat(common): DatePipe supports ISO string
...
Closes #7794
2016-05-23 12:30:02 -07:00
Alex Eagle
666dc75c15
chore(lint): disallow duplicate imports from a module
...
Closes #7859
2016-05-20 15:59:33 -07:00
Rene Weber
2bf21e1747
fix(Router): replace state when normalized path is equal to current normalized path
...
Make sure the same path is not added multiple times to the history.
It is replacing the state, instead of skipping it completely,
because the current path in the browser might not be normalized,
while the given one is normalized.
Closes #7829
Closes #7897
2016-05-20 15:30:15 -07:00
Pascal Precht
9105ab9596
docs(ng_control_group): update API docs syntax
...
Closes #7357
2016-05-20 13:19:08 -07:00
mgechev
165357bfa3
refactor(forms): remove useless imports
...
Remove useless imports and change `bindings` to `providers` inside
`@Component` and `@Directive`.
Closes #7904
2016-05-20 13:13:27 -07:00
Igor Minar
0035575c82
build: turn on tsc's stripInternal when producint public d.ts file
...
I also made some changes to fix imports and remove some stuff that caused
breakage once stripInternals was turned on.
2016-05-20 10:59:57 -07:00
Dimitrios Loukadakis
595bcdd1ac
fix(router): browser back and forward buttons not working correctly.
...
Closes #8524
Closes #8532
2016-05-19 22:42:08 -07:00
gdi2290
390046d7b3
feat(AsyncPipe): allow onError argument
...
Closes #7990
2016-05-19 16:49:28 -07:00
Sekib Omazic
cb94111f18
style(Forms): remove unused imports
...
remove unused imports from the forms package
2016-05-19 14:50:33 -07:00
Joost de Vries
a01a54c180
adds 'repository' metadata to npm modules ( #8649 )
2016-05-17 23:17:15 -07:00
Igor Minar
52595f52f9
chore: make workaround_empty_observable_list_diff @internal
2016-05-04 01:12:40 -06:00
Igor Minar
905f38acb8
build: fix source map paths for npm packages
...
the bundles have source mpas disabled for now because when we downlevel
the esm bundle to es5 tsc doesn't consider the original source map so
we end up with a source map pointing to the esm bundle instead which is
not useful.
2016-05-03 13:36:33 -06:00
Felix Itzenplitz
27a7b51d99
fix(docs): upgrade deprecated ngFor-Syntax
2016-05-03 11:49:33 -07:00
Tobias Bosch
43527172ed
chore: don’t shadow `tsconfig.json` used for editors by build specific tsconfig.json
2016-05-02 15:06:46 -07:00
Alex Eagle
3ae856ab8b
build(tsc): Use angular2-template-compiler in place of tsc
...
This lets us down-level Decorators with tsickle and produce .metadata.json
files for users to reference when offline-compiling their app.
2016-05-01 23:40:59 -07:00
Misko Hevery
3e17c99f4e
chore: clang-reformat
2016-05-01 22:59:41 -07:00
Misko Hevery
2570b72158
fix: textSelection on FireFox
2016-05-01 22:27:55 -07:00
Alex Eagle
c4be30d2e8
Revert "build(tsc): Use angular2-template-compiler in place of tsc"
...
This reverts commit 3d25294f706e0fd6224b20372be1e961959c0af8.
2016-05-01 20:51:00 -07:00
Alex Eagle
57240c85a5
build(tsc): Use angular2-template-compiler in place of tsc
...
This gives us tsickle pre-processing of Decorators, and produces
.metadata.json files for users to consume in their offline compilation.
2016-05-01 20:51:00 -07:00
Igor Minar
a66cdb469f
repackaging: all the repackaging changes squashed
2016-05-01 20:51:00 -07:00
Igor Minar
505da6c0a8
repackaging: all the file moves
2016-05-01 20:51:00 -07:00