vsavkin
5d386dc426
chore(router): update build dir
2016-06-21 12:17:30 -07:00
vsavkin
f34af4f249
feat(router): add support for using classes as guard
2016-06-21 12:17:30 -07:00
vsavkin
f04b6978fb
cleanup(router): add @internal to constructors where needed
2016-06-21 12:17:30 -07:00
vsavkin
ab958598d7
feat(router): implement CandDeactivate
2016-06-21 12:17:30 -07:00
vsavkin
1914847e72
cleanup(router): make strictNullChecks happy
2016-06-21 12:17:30 -07:00
vsavkin
d95f0fd83d
fix(router): fix index routes
2016-06-21 12:17:30 -07:00
vsavkin
243612e36d
refactor(router): rename candidate into snapshot
2016-06-21 12:17:30 -07:00
vsavkin
c5cca8e098
feat(router): add support for CanActivate guard
2016-06-21 12:17:30 -07:00
vsavkin
99f7404d8b
refactor(router): remove rootNode function
2016-06-21 12:17:30 -07:00
vsavkin
9ff6b0828f
feat(router): make activation sync
2016-06-21 12:17:30 -07:00
vsavkin
6f052d1daf
feat(router): add a function to resolve components
2016-06-21 12:17:30 -07:00
vsavkin
63c194b71f
feat(router): change recognize to return a router state candidate
2016-06-21 12:17:30 -07:00
vsavkin
46911117f1
feat(router): implement a function create router state out of a candidate
2016-06-21 12:17:30 -07:00
vsavkin
2de1030413
feat(router): add RouterStateCandidate
2016-06-21 12:17:30 -07:00
vsavkin
1f6ade894e
cleanup(router): fix a typo
2016-06-21 12:17:30 -07:00
vsavkin
8407cfeac7
fix(router): fix router to take root component type instead of instance
2016-06-21 12:17:30 -07:00
vsavkin
91d64a2855
feat(router): export provideRouter via index
2016-06-21 12:17:30 -07:00
vsavkin
40a06af79b
feat(router): add provideRouter to configure the router when bootstrapping an app
2016-06-21 12:17:30 -07:00
vsavkin
8aef86f4a0
feat(router): export all public api tokens via index
2016-06-21 12:17:30 -07:00
vsavkin
5bdc6ecec8
chore: adds the build dir to use with 'npm install'
2016-06-21 12:17:30 -07:00
vsavkin
c179b5033b
feat(router): implement relative navigation
2016-06-21 12:17:30 -07:00
vsavkin
86f47273bc
feat(router): changes router config not to use names
2016-06-21 12:17:30 -07:00
vsavkin
2e1bd46bb1
feat(router): add createUrlTree
2016-06-21 12:17:30 -07:00
vsavkin
a9e773b47b
feat(router): serialize outlet names into the url
2016-06-21 12:17:30 -07:00
vsavkin
10d38cbb72
chore(router): change karma reporter
2016-06-21 12:17:30 -07:00
vsavkin
a5371bfb8a
cleanup: cleanup tsconfig files
2016-06-21 12:17:30 -07:00
vsavkin
4b2740f270
refactor: move index.ts into src
2016-06-21 12:17:30 -07:00
vsavkin
5b371736b2
feat: add RouterLink
2016-06-21 12:17:30 -07:00
vsavkin
c9b4bcf689
refactor: move all utility functions into the utils dir
2016-06-21 12:17:30 -07:00
vsavkin
013f9a2bbc
feat: add tree.siblings
2016-06-21 12:17:30 -07:00
vsavkin
5bf1c93ead
docs: adds missing api docs
2016-06-21 12:17:30 -07:00
vsavkin
4f6ec01932
feat: implement a simple version of the router service
2016-06-21 12:17:30 -07:00
vsavkin
0f79e504c9
test: set up karma to support fakeAsync
2016-06-21 12:17:30 -07:00
vsavkin
1a4e911b8b
cleanup: fix type errors when compiling with strictNullChecks enabled
2016-06-21 12:17:30 -07:00
vsavkin
1f98519380
feat: implement RouterOutletMap
2016-06-21 12:17:30 -07:00
vsavkin
aad7010952
feat: add RouterOutlet
2016-06-21 12:17:30 -07:00
vsavkin
1be9ea681b
fix: fix source maps
2016-06-21 12:17:30 -07:00
vsavkin
f259a2204b
feat: implement recognizer
2016-06-21 12:17:30 -07:00
vsavkin
4b1db0e61c
feat: implement default url serializer
2016-06-21 12:17:30 -07:00
vsavkin
aee764d14d
chore: update TS to enable non-nullable types
2016-06-21 12:17:30 -07:00
vsavkin
47585498af
chore: updates typings to head
2016-06-21 12:17:30 -07:00
vsavkin
37c5320e33
feat: implement Tree
2016-06-21 12:17:30 -07:00
vsavkin
01111a1122
cleanup: removes a fake test
2016-06-21 12:17:30 -07:00
Rob Wormald
0b2bb1b6f5
chore(typings): use typings instead of tsd
2016-06-21 12:17:30 -07:00
vsavkin
f57df3cf8a
chore: set up test and build infrastructure
2016-06-21 12:17:30 -07:00
Victor Berchet
c9c81e1fbc
fix(XmbSerializer): add meaning attribute, escape attribute values
2016-06-21 11:52:11 -07:00
Victor Berchet
e38e04c1c2
refactor(MessageExtractor): pass the interpolationConfig around
2016-06-21 11:52:11 -07:00
Victor Berchet
99587ea4ed
refactor(i18n): misc
2016-06-21 11:52:11 -07:00
Victor Berchet
58b18d7fe7
fix(partition): fix partition when `<!-- i18n -->` is the only child
2016-06-21 11:52:11 -07:00
Victor Berchet
04a50f5832
feat(MessageExtractor): do not expand ICU messages before extraction
2016-06-21 11:52:11 -07:00
Rob Wormald
e157a065b0
fix(compiler): codegen view query generic types
2016-06-21 11:51:54 -07:00
James Ward
41ef4b3d4a
chore(npm): add repository metadata
2016-06-21 11:21:04 -07:00
Edd Hannay
262650ab39
docs(test_injector): Fix documentation typo ( #9403 )
...
- Change 'teh' for 'the'
2016-06-21 11:19:08 -07:00
Igor Minar
8c076d5a73
fix(upgrade): fix bundling issue and fix e2e test
...
the previous demo app was broken and is missing an e2e test.
I fixed the app, but was not able to get protractor to properly test
this app. Julie and I are looking into that. For now I manually verified
that the app works and that the original issue was fixed.
Closes #9244
2016-06-21 11:12:42 -07:00
Victor Berchet
c5c456120c
refactor: delete containsRegexp() (there is escapeRegExp() in the lang facade)
...
BREAKING CHANGES:
`containsRegexp` is no more exported from `@angular/core/testing`. It should not have been part of the public API in the first place.
2016-06-21 09:15:21 -07:00
Pawel Kozlowski
fdf6bc18dd
fix(compiler): properly report unresolved dependencies
...
Fixes #9332
Closes #9341
2016-06-21 16:36:57 +02:00
PatrickJS
297f0fd2c3
fix(core/testing): show full error
...
test(platform-browser): update fail capture
test(platform-browser-dynamic): update fail capture
2016-06-20 19:36:37 -07:00
Victor Berchet
12c49042ab
fix(HTTP/XhrBackend): correctly set the status code on errors ( #9355 )
...
fixes #9329
fixes angular/http#54
2016-06-20 15:02:14 -07:00
Matias Niemelä
ba46ca683b
fix(animations): ensure starting styles are applied when a delay is present
...
Closes #9326
Closes #9328
2016-06-20 11:16:39 -07:00
Victor Berchet
ca42b49fa2
refactor: misc cleanup ( #9369 )
2016-06-20 10:55:29 -07:00
Victor Berchet
1b28cf71f5
feat(compiler): make interpolation symbols configurable (`@Component` config) ( #9367 )
...
closes #9158
2016-06-20 09:52:41 -07:00
vsavkin
af2f5c3d7d
cleanup(router): removes router
2016-06-20 08:47:54 -07:00
Jesús Rodríguez
65be81baf8
doc(CheatSheet): update ngSwitch syntax in the cheatsheet ( #9361 )
2016-06-20 08:05:50 -07:00
Misko Hevery
7a3689f175
chore: formating
2016-06-19 22:27:29 +02: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
Misko Hevery
279e816ea7
chore: Remove unnecessary calls to Parse5DomAdapter
...
This reverts commit 80deac5cde
.
2016-06-19 08:42:00 -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
Tobias Bosch
c0f2a22a08
fix(perf): support prod mode again
...
After splitting the facades into multiple modules,
enabling prod mode for code had no effect for the compiler.
Also in a change between RC1 and RC2 we created the `CompilerConfig`
via a provider with `useValue` and not via a `useFactory`, which reads
the prod mode too early.
Closes #9318
Closes #8508
Closes #9318
2016-06-17 15:59:27 -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
76a418760e
fix(BrowserUtil): fix `supportsIntlApi()`
2016-06-17 15:34:12 -07:00
Victor Berchet
49bf3f5b3a
fix(NumberPipe): fix broken RegExp
...
introduced in 7498050421
(#9308 )
2016-06-17 15:33:25 -07:00
Alfonso Presa
773c34900f
fix(change_detection): ChangeDetectorRef reattach should restore original mode
...
After using ChangeDetectorRef detach, it should keep the ChangeDetector mode so that it is restored after calling reattach.
closes #7078
closes #7080
2016-06-17 15:00:41 -07:00
Chuck Jazdzewski
791153c93c
fix(compiler): StaticReflector ignores unregistered decorators. ( #9266 )
...
Also modified static reflector to allow writing tests in using
the .ts and using the MetadataCollector.
Also made MetadataCollector be able to use SourceFiles that have
not been bound (that is, don't have the parent property set).
Fixes #9182
Fixes #9265
2016-06-17 13:11:00 -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
Martin Probst
8879aa1df4
feat(security): fail more detectably when using a safe value in an interpolation.
...
If a user ends up with a safe value in an interpolation context, that's probably
a bug. Returning `"SafeValue must use [property]= binding"` will make it easier
to detect and correct the situation. Detecting the situation and throwing an
error for it could cause performance issues, so we're not doing this at this
point (but might revisit later).
Part of #8511 and #9253 .
2016-06-17 10:00:30 -07:00
Victor Berchet
44e0ad4987
refactor(forms): remove the facade local copy ( #9276 )
2016-06-17 08:53:17 -07:00
Pawel Kozlowski
5fe60759f9
feat(QueryList): support index in callbacks
...
Closes #9278
2016-06-17 08:09:42 -07:00
Matias Niemelä
45549cda61
refactor(core): get rid of the bitwise operator facade helpers
2016-06-16 14:31:55 -07:00
Matias Niemelä
a13052fc73
refactor(core): rename css_parser and css_lexer files
...
Closes #9273
2016-06-16 14:31:48 -07:00
Matias Niemelä
4e7bb03e81
refactor(core): rename `AST` to `Ast` for all CSS parser code
2016-06-16 14:31:41 -07:00
Matias Niemelä
935c39a7e2
feat(core): ensure CSS parser tracks start/end values and understands complex pseudo selectors
2016-06-16 14:31:34 -07:00
Victor Berchet
c08ca22dba
refactor(HtmlParser): clang format
2016-06-16 13:54:00 -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
Victor Berchet
c60ef45bc8
fix(HtmlParser): add missing ;
2016-06-16 10:23:02 -07:00
Victor Berchet
1eaa193c51
feat(compiler-cli): add a `debug` option to control the output
...
fixes #9208
2016-06-15 18:13:57 -07:00
Victor Berchet
b620f4f456
feat(DomElementSchemaRegistry): add support for <ng-content> and <ng-container>
2016-06-15 18:13:57 -07:00
Victor Berchet
e484c62a8d
fix(HtmlParser): do not add required parents to template root elements
...
fixes #5967
2016-06-15 18:13:57 -07:00
Victor Berchet
9ba400d7d5
fix(HtmlParser): consider <ng-container> when adding required parents
2016-06-15 18:13:57 -07:00
Victor Berchet
9cbd8f7afc
test(ng-container): test nesting ng-containers
2016-06-15 18:13:57 -07:00
Kara Erickson
8e6e90e703
fix(forms): ngModel should export as ngModel
2016-06-15 17:46:45 -07:00
Igor Minar
26676c4833
docs(webworker): add/correct experimental markers to web worker apis
2016-06-15 17:12:40 -07:00
Kara Erickson
39e0b4903c
feat(radio): support radio button sharing a control
2016-06-15 15:27:34 -07:00
Jesús Rodríguez
54c577cfe0
chore: update cheatsheet for new provider syntax ( #9227 )
2016-06-15 15:11:39 -07:00
Igor Minar
933f45ef31
docs(webworkers): add experimental markers for all web worker public apis
2016-06-15 09:38:03 -07:00
Igor Minar
4fc37aeabd
fix(webworkers): rename all web worker apis with "render" to "ui"
...
"render" is gramatically incorrect and confusing to developers who used this api.
Since webworker apis were exposed only in master, renaming these before the rc2 release
is not a breaking change
2016-06-15 09:38:03 -07:00
Kara Erickson
2fd1e88199
fix(forms): suppress forms deprecation warning after first
2016-06-15 08:52:56 -07:00
Misko Hevery
d44d0852e5
Revert "fix: cleanup public api of platform-server"
...
This reverts commit ac84468f1c
.
2016-06-14 19:40:43 -07:00
Misko Hevery
80deac5cde
Revert "chore: Remove unnecessary calls to Parse5DomAdapter"
...
This reverts commit 387a90e546
.
2016-06-14 19:40:43 -07:00
Victor Berchet
8a54c1a115
refactor(ViewBuilder): cleanup
2016-06-14 19:11:30 -07:00
Victor Berchet
0dbff55bc6
feat(Compiler): add support for `<ng-container>`
...
`<ng-container>` is a logical container that can be used to group nodes but is not rendered in the DOM tree as a node.
`<ng-container>` is rendered as an HTML comment.
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
Victor Berchet
fe01e2efb7
feat(I18nExtractor): Add file paths to error messages ( #9177 )
...
* feat(I18nExtractor): Add file paths to error messages
relates to #9071
* feat(i18n): allow i18n start comments without meaning
* refactor(i18n): cleanup
* test(HtmlParser): Add depth to expansion forms
2016-06-14 17:50:23 -07:00
Igor Minar
7afee97d1b
fix(platform-server): correctly import private DOMTestComponentRenderer
2016-06-14 17:26:55 -07:00
Igor Minar
6fc267f22c
fix: split dynamic bits in platform-browser into platform-browser-dynamic
...
Previously these symbols were exposed via platform-browser-dynamic, then we merged then into platform-browser
thinking that tools would know how to shake off the compiler and other dynamic bits not used with the offline
compilation flow. This turned out to be wrong as both webpack and rollup don't have good enough tree-shaking
capabilities to do this today. We think that in the future we'll be able to merge these two entry points into
one, but we need to give tooling some time before we can do it. In the meantime the reintroduction of the -dynamic
package point allows us to separate the compiler dependencies from the rest of the framework.
This change undoes the previous breaking change that removed the platform-browser-dynamic package.
2016-06-14 15:31:24 -07:00
Misko Hevery
ac84468f1c
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
2016-06-14 13:21:28 -07:00
Misko Hevery
387a90e546
chore: Remove unnecessary calls to Parse5DomAdapter
2016-06-14 13:07:11 -07:00
Kara Erickson
a191e9697c
feat(forms): support setting control name in ngModelOptions
2016-06-13 16:57:10 -07:00
Chuck Jazdzewski
5504ca1e38
feat(compiler): Added support for limited function calls in metadata. ( #9125 )
...
The collector now collects the body of functions that return an
expression as a symbolic 'function'. The static reflector supports
expanding these functions statically to allow provider macros.
Also added support for the array spread operator in both the
collector and the static reflector.
2016-06-13 15:56:51 -07:00
Kara Erickson
5c0cfdee48
fix(forms): separate ngModelGroup from formGroupName
2016-06-13 13:41:39 -07:00
Tobias Bosch
bc888bf3a1
refactor(compiler): Change arguments of `CompilerConfig` to named arguments
...
BREAKIKNG CHANGE:
`CompilerConfig` used to take positional arguments and now takes named arguments.
Closes #9172
2016-06-13 13:14:07 -07:00
Tobias Bosch
1745366530
refactor(compiler): make `PLATFORM_PIPES` / `PLATFORM_DIRECTIVES` an option on `CompilerConfig`
...
This aligns the configuration of platform pipes / directives with offline compilation.
BREAKING CHANGE:
- `PLATFORM_PIPES` and `PLATFORM_DIRECTIVES` now are fields on `CompilerConfig`.
Instead of providing a binding to these tokens, provide a binding for `CompilerConfig` instead.
2016-06-13 13:13:45 -07:00
Kara Erickson
61960c51a3
feat(forms): compose validator fns automatically if arrays
2016-06-13 11:41:32 -07:00
ScottSWu
14a3ade662
chore(typescript): Changed double asterisks in #9100 to single asterisks
...
As in #9151 , these comments are being read as JSDoc comments. This commit is smaller and only touches a few files that are causing errors.
2016-06-13 10:53:31 -07:00
Wassim Chegham
de97687422
docs(i18n): fix typo ( #9165 )
2016-06-13 10:00:57 -07:00
Victor Berchet
a0251305ea
doc(CompilerCli): Add a bootstrap example for a compiled application
2016-06-13 08:59:16 -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
Matias Niemelä
55860e1621
fix(animations): ensure AUTO styles are cleared at the end of the state-change animation
...
Closes #9014
Closes #9015
2016-06-11 00:08:41 -07:00
Matias Niemelä
4d51158b1a
fix(animations): ensure the web-animations driver converts style props to camel-case
...
The web animations API now requires that all styles are converted to
camel case. Chrome has already made this breaking change and hyphenated
styles are not functional anymore.
Closes #9111
Closes #9112
2016-06-10 22:54:10 -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
Victor Berchet
a6e5ddc5af
feat(ComponentResolver): Add a SystemJS resolver for compiled apps ( #9145 )
2016-06-10 16:31:34 -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
Victor Berchet
5267115481
feat(I18N): generate error on unknown cases
...
fixes #9094
2016-06-10 08:45:59 -07:00
Victor Berchet
43148d8233
feat(HtmlLexer): add support for alphabetic cases
2016-06-10 08:45:59 -07:00
Vivek Ghaisas
537e99b4ea
fix(http): respect custom Content-Type header in XHRConnection ( #9131 )
...
Fix a bug due to which setting a custom Content-Type header in the
Request led to multiple Content-Types being set on the sent
XMLHttpRequest: first the detected content type based on the request
body, followed by the custom set content type.
Fix #9130 .
2016-06-10 08:18:49 -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
Pawel Kozlowski
3aca5ff9e2
fix(compiler): properly report missing DI tokens ( #9065 )
...
Fixes #8245
2016-06-09 16:07:06 -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
Pawel Kozlowski
0c9e8dbf60
docs(linker): document the injector argument as mandatory ( #9098 )
...
Fixes #8600
2016-06-09 16:03:42 -07:00
Chuck Jazdzewski
0658eb4429
fix(compiler): Added unit test to ReflectorHost and fixed issues ( #9052 )
...
Refactored ReflectorHost to allow it to be tested.
Fixed an issue where the .d.ts was findable but it wasn't used by the project
(This happens when the .metadata.json file references a module that was not
needed, such as it doesn't declare any types, and the reference to it was
elided by TypeScript when writing the .d.ts file).
Added tests for ReflectorHost
2016-06-09 14:51:53 -07:00
Chuck Jazdzewski
e178ee4ba0
fix(compiler): Added support for '* as m' style imports. ( #9077 )
...
Also includes fixes for broken test.
2016-06-09 13:23:29 -07:00
Martin Probst
729dc3b764
fix(security): support XSSI prefixes with and without commas.
...
Some implementations use an XSSI prefix with a trailing comma, some without.
This changes Angular to support both.
2016-06-09 11:32:07 -07:00
Victor Berchet
7ce0fc7d47
refactor: add types ( #9116 )
2016-06-09 11:04:15 -07:00
Martin Probst
346304762e
feat(security): document <iframe src> to be TRUSTED_URL.
...
Docs on the DomSanitizationService didn't match actual usage before.
Also fixes some minor docs and implementation issues.
2016-06-08 20:49: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
Miško Hevery
87d824e1b4
fix: add typescript test for our typings ( #9096 )
...
* Revert "fix(d.ts): enable angular2 compilation with TS flag --strictNullChecks (#8902 )"
This reverts commit 7e352a27f7
.
* test: add typescript test for our typings
2016-06-08 16:06:23 -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
Igor Minar
29c2dcff61
fix(http): remove peerDep on @angular/common
...
it is not needed there because it will get transitively installed by @angular/platform-browser
we only need to declare this dependency in tsconfig.json because tsconfig.json's
do not support transitive dependencies in this way.
2016-06-08 12:20:42 -07:00
Igor Minar
d18694a1c3
Revert "WIP: test: add tree-shaking test ( #8979 )"
...
This reverts commit b746c64229
.
Reason: bad merge via github ui
2016-06-08 12:20:17 -07:00
Igor Minar
b746c64229
WIP: test: add tree-shaking test ( #8979 )
...
* test: add tree-shaking test
currently this doesn't throw or break the build, first we need to resolve all
of the existing issues.
to run execute: ./tools/tree-shaking-test/test.sh
then inspect dist/tree-shaking/test/**/*.bundle.js
* fix(http): remove peerDep on @angular/common
it is not needed there because it will get transitively installed by @angular/platform-browser
we only need to declare this dependency in tsconfig.json because tsconfig.json's
do not support transitive dependencies in this way.
2016-06-08 12:15:09 -07:00
Kara Erickson
515a8e0765
fix(forms): rename old forms folder to forms-deprecated
2016-06-08 11:21:58 -07:00
Igor Minar
45de65bd45
fix(router): don't mark the RouterOutletMap as internal
...
it's currently being reexported as public api which breaks anyone tryin to import
the router because the RouterOutletMap definition is missing
2016-06-08 11:18:35 -07:00
Victor Berchet
ac1156739d
feat(i18n): extract messages
2016-06-07 15:17:02 -07:00
Torgeir Helgevold
7cefec77ef
fix(ngUpgrade): prevent digest already in progress ( #9054 )
...
fix(ngUpgrade): prevent digest already in progress
2016-06-07 15:10:13 -07:00
Matias Niemelä
36d25f2a07
feat(animations): support styling of the default animation state
...
It is now possible to set a fallback state that will apply its
styling when the destination state is not detected.
```ts
state("*", style({ ... }))
```
Closes #9013
2016-06-07 12:59:33 -07:00
Tobias Bosch
c3d2459a4e
fix(query): set fixed `@ViewChild` / `@ContentChild` right after the view is created
...
This is needed to have a true replacement of the previous
`DynamicComponentLoader.loadNextToLocation`, so that components
can be loaded into the view before change detection runs.
Closes #9040
2016-06-07 12:40:35 -07:00
Tobias Bosch
8847580fd7
Revert "fix(compiler): add ability to parse : in * directives"
...
This reverts commit 53628e19ac
.
as it breaks pipe arguments in `*ngFor`, ...
See #9062
Closes #9063
2016-06-07 12:39:17 -07:00
Chuck Jazdzewski
cf3548a02f
fix(compiler): Improved error reporting of the static reflector.
...
StaticReflector provides more context on errors reported by the
collector.
The metadata collector now records the line and character of the node that
caused it to report the error.
Includes other minor fixes to error reporting and a wording change.
Fixes #8978
Closes #9011
2016-06-07 08:38:32 -07:00
Chuck Jazdzewski
c197e2bb42
Revert "fix(ngUpgrade): prevent digest already in progress ( #9046 )"
...
This reverts commit d1c989b8a5
.
Breaks a Karma test.
2016-06-06 16:30:11 -07:00
Torgeir Helgevold
d1c989b8a5
fix(ngUpgrade): prevent digest already in progress ( #9046 )
2016-06-06 13:34:27 -07:00
Rob Wormald
a19c4e8f9a
fix(upgrade): allow functions for template and templateUrl ( #9022 )
2016-06-04 19:53:51 -07:00
PatrickJS
53083c0b52
refactor(testing): type beforeEachProviders ( #9023 )
...
these are valid otherwise
```typescript
beforeEachProviders(1)
beforeEachProviders('wat')
beforeEachProviders([
Http
])
```
2016-06-04 19:52:51 -07:00
PatrickJS
994d9212c1
docs(NgControlName): correct exports name ( #9021 )
2016-06-04 19:48:50 -07:00
Pawel Kozlowski
52ddc96c9f
refactor(compiler): remove obsolete @View-related code ( #9019 )
2016-06-04 19:46:55 -07:00
Pawel Kozlowski
057abefe50
fix(compiler): report errors for queries without selectors ( #9018 )
...
Fixes #4489
2016-06-04 19:46:03 -07:00
Matias Niemelä
a1e3004e62
docs(animations): provide API docs for the animation DSL
...
Closes #8970
2016-06-03 18:57:17 -07:00
Matias Niemelä
e504d4eb05
fix(renderer): remove unecessary setElementStyles method
...
There is no need to expose this additional method inside of the Renderer
API. The functionality can be restored by looping and calling
`setElementStyle` instead.
Note that this change is changing code that was was introduced after
the last release therefore this fix is not a breaking change.
Closes #9000
Closes #9009
2016-06-03 15:20:34 -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
Matias Niemelä
b00b9fe564
chore(README): update missing step in compiler-cli docs README
2016-06-03 14:36:16 -07:00
Matias Niemelä
fa0718ba9a
feat(animations): provide support for offline compilation
2016-06-03 14:36:11 -07:00
Matias Niemelä
155b88213c
feat(debug): collect styles and classes for the DebugElement
2016-06-03 14:36:06 -07:00
Chuck Jazdzewski
35ea02fb81
fix(compiler): Reflector generates imports for '..' relative modules.
...
Fixes #9003
Closes #9004
2016-06-03 12:54:30 -07:00
Tobias Bosch
ddd2ac4f55
fix(core): fix type of `DebugNode.properties` ( #8964 )
...
Properties can have any value, not just strings.
2016-06-03 10:51:13 -07:00
Pawel Kozlowski
6f281ab3c4
fix(HTMLParser): properly report errors for not properly closed tags ( #8999 )
...
Fixes #7849
2016-06-03 10:49:17 -07:00
Igor Minar
76e6214b9b
chore: remove angular_entry point ( #8975 )
...
this is obsolete and no longer needed. it wasn't part of the public api so it's ok to remove.
2016-06-03 10:47:55 -07:00
Chuck Jazdzewski
2d8f776e38
feat(build): Added a version stamp in .metadata.json files.
...
Also modified StaticReflector to handle multiple versions in a
single .metadata.json file.
Fixes #8974
Closes #8981
2016-06-03 10:40:49 -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
Miško Hevery
b160ada5d1
fix: QueryList documentation ( #8976 )
2016-06-02 16:24:26 -07:00
Victor Berchet
1090601e8b
refactor(compiler): rename /compiler_cli to /compiler-cli
2016-06-02 13:50:32 -07:00
Chuck Jazdzewski
01dd7dde24
chore(tools): Remove use of TypeChecker from metadata collector.
...
The metadata collector was modified to look up references in the
import list instead of resolving the symbol using the TypeChecker
making the use of the TypeChecker vestigial. This change removes
all uses of the TypeChecker.
Modified the schema to be able to record global and local (non-module
specific references).
Added error messages to the schema and errors are recorded in
the metadata file allowing the static reflector to throw errors
if an unsupported construct is referenced by metadata.
Closes #8966
Fixes #8893
Fixes #8894
2016-06-02 13:39:15 -07:00
Chuck Jazdzewski
13c39a52c6
chore(compiler): Expose types needed by the language service
...
The language service needs access to the parser error ranges and
the static reflector.
Closes #8838
2016-06-02 13:36:22 -07:00
Victor Berchet
3b80ab51ba
feat(SchemaRegistry): add Node.textContent
...
fixes #8413
2016-06-02 13:33:57 -07:00
Victor Berchet
1a386a58c8
Revert "feat(change_detection): make INTERPOLATE_REGEXP customizable ( #7417 )"
...
This reverts commit c3fafa0651
.
The symbols should be configured at the component level and not be global to the compiler.
2016-06-01 17:53:45 -07:00
Tobias Bosch
04220be8fd
chore: remove old tests ( #8954 )
...
These tests are already captured in template_parser_spec.ts
2016-06-01 16:30:51 -07:00
Hannah Howard
48bf349c3c
fix(upgrade): allow deeper nesting of ng2 components/directives ( #8949 )
...
* fix(upgrade): add test for upgrade adapter bug
* fix(upgrade): allow deeper nesting of ng2 components/directives
allow a nesting sequence of ng2 > ng1 > ng2 directives
2016-06-01 15:58:40 -07:00
laco0416
602836800b
feat(ChangeDetectorRef): make detectChanges() correct
...
Closes #8599
2016-06-01 12:50:47 -07:00
Igor Minar
a738d0d54d
chore: remove old public api tests
...
the tests under tools/public_api_guard have better coverage - we no longer need
to maintain two copies.
2016-06-01 10:43:57 -07:00
Igor Minar
dd6cb233b5
build: add missing testing.ts entry points to tsconfigs
2016-06-01 10:43:22 -07:00
Igor Minar
a3cf58b67a
docs: add info about __moduleName into to DirectiveMetadata docs
2016-06-01 10:43:22 -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
Hannah Howard
1c929031a2
feat(router): export RouterLink and RouterOutlet ( #8912 )
...
Makes it possible to individually import RouterLink and RouterOutlet from the router module
2016-06-01 09:48:55 -07:00
Victor Berchet
f2809d1ed8
fix(PostMessageBus):Add the worker scope to please Closure
2016-06-01 09:24:05 -07:00
Vikram Subramanian
f4f6b8721a
fix(core): Keep core exports seperate from core/testing exports.
2016-05-31 20:09:43 -07:00
opensrcken
7e352a27f7
fix(d.ts): enable angular2 compilation with TS flag --strictNullChecks ( #8902 )
...
Eliminate the following compiler error when using TS 1.9+ with strict null checking enabled:
node_modules/@angular/core/src/util/decorators.d.ts(9,5): error TS2411: Property 'extends' of type 'Type | undefined' is not assignable to string index type 'Type | Function | any[]'.
https://github.com/angular/angular/issues/8720
2016-05-31 18:25:48 -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
Martin Probst
10475b859d
chore: remove deep imports to fix build.
2016-05-31 17:13:41 -07:00
Martin Probst
4d793c4eb8
feat(security): Automatic XSRF handling.
...
Automatically recognize XSRF protection cookies, and set a corresponding XSRF
header. Allows applications to configure the cookie names, or if needed,
completely override the XSRF request configuration by binding their own
XSRFHandler implementation.
Part of #8511 .
2016-05-31 16:12:33 -07:00
Alex Eagle
3331321f64
build(ngc): run integration test hermetically
...
This ensures we run in a clean directory, using our real distribution. It finds bugs like @internal
APIs needed to type-check in the offline compiler, as well as problems in package.json.
Also move tsc-wrapped under tools/@angular
2016-05-27 17:21:35 -07:00
Alex Eagle
c6064a30a1
chore(package.json): make the packages installable
2016-05-27 17:21:34 -07:00
Martin Probst
040b101842
feat(security): complete DOM security schema.
...
This addresses several oversights in assigning security contexts to DOM schema
elements found by our security reviewers (thanks!).
This also adds some more precise unit tests for the interaction between
(Dom)ElementSchemaRegistry and the TemplateParser, and extracts the security
specific parts into dom_security_schema.ts.
Comparison of (potentially) dangerous property names is done case insensitive,
to avoid issues like formAction vs formaction.
Part of issue #8511 .
2016-05-27 11:47:33 -07:00
Phong Huynh
ec198b0dc6
docs(MockConnection) add mockError usage example ( #8888 )
2016-05-27 10:10:53 -07:00
Alex Eagle
b5d14c26d2
chore(lint): enable requireInternalWithUnderscore tslint check
2016-05-27 09:31:18 -07:00
Alex Eagle
2019050db2
chore(lint): enable duplicateModuleImport tslint check
2016-05-27 09:17:08 -07:00
Victor Berchet
307d105d2c
fix(DomRegistry): fix svg support
2016-05-26 16:46:00 -07:00
Alex Eagle
0b6967fd74
chore(lint): fix missing semicolon to make Circle green ( #8877 )
2016-05-26 16:43:15 -07:00
Alex Eagle
ef0c32512c
chore(lint): enable semicolon and variable-name tslint checks
2016-05-26 15:46:03 -07:00
Victor Berchet
4d825dd9fd
refactor(intl facade): remove outdated code
2016-05-26 14:19:26 -07:00
Tobias Bosch
8e38291156
chore: enable the compiler_cli tests again.
...
Closes #8864
2016-05-26 13:33:26 -07:00
laco0416
f93512bf27
feat(ViewEncapsulation): default ViewEncapsulation to configurable
...
BREAKING CHANGES:
DirectiveNormalizer takes new constructor arguments, `config:CompilerConfig`.
Closes #7883
2016-05-26 13:23:37 -07:00
Suguru Inatomi
c3fafa0651
feat(change_detection): make INTERPOLATE_REGEXP customizable ( #7417 )
...
BREAKING CHANGES:
`Parser` constructor required new parameter `config: CompilerConfig` as second argument.
2016-05-26 13:08:39 -07:00
Andrii Nechytailov
9036f78b74
fix(compiler): throw an error if variable with the same name is already defined. ( #7209 )
...
* fix(compiler): throw an error if variable with the same name is already defined. Closes #6492
* fix(compiler): Clean up formatting for issue #6492
* fix(compiler): throw an error if reference with the same name is already defined.
Closes #6492
2016-05-26 13:04:17 -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
Dimitrios Loukadakis
b2a7fd05cb
fix(router): replace state when path is equal to current path ( #8766 )
...
Same as 2bf21e1747
but for new router.
This also fixes an issue where when application loads it clears forward history
because Router constructor calls navigateByUrl which was causing a push state to happen.
2016-05-26 12:02:24 -07:00
Nicholas Hydock
84f859d7b2
fix(Control): Support <select multiple> with Control class ( #8069 )
2016-05-26 12:01:49 -07:00
Matthew Windwer
cbc8d0adf8
fix(upgrade): Ensure upgrade adapter works on angular.js 1.2 ( #8647 )
2016-05-26 11:58:47 -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
Thierry Templier
89f61087c7
feat(http): implement Response.prototype.toString() to make for a nicer error message
...
Added a toString method to the Response class displaying status / status and
the URL of the request.
Closes: https://github.com/angular/http/issues/89
Closes #7511
2016-05-26 10:38:29 -07:00
Matt Wheatley
b7b56785d1
fix(Renderer): update signatures to make RenderDebugInfo optional
...
The code does not force the user to provider `RenderDebugInfo`. The
current implementation lists this as a mandatory parameter. Update
the parameter to be optional.
Fixes #8466
Closes #8859
2016-05-26 10:32:03 -07:00
Zach Bjornson
3a62023260
docs(LifecycleHooks): correct ngDoCheck description ( #8807 )
...
The current behavior is for ngDoCheck to supplement, not override, the default change detector. OnChanges will still be called when DoCheck is implemented (fixes #7307 ).
2016-05-26 10:27:42 -07:00
Dimitrios Loukadakis
fa2ce8100b
fix(router): openning links in new tab
...
Clicks on router-link should not prevent browser default action when
any mouse button other than left mouse button or ctrl/meta key is pressed.
router-link href should use location strategy external url.
Closes #5908
Closes #6806
Closes #7749
Closes #8806
Closes #8821
2016-05-26 10:26:57 -07:00
Victor Berchet
172a5663ef
feat(platform-browser-dynamic): re-add a deprecated platform-browser-dynamic
2016-05-26 10:22:39 -07:00
Victor Berchet
f4b972815b
fix(platform-browser): fix rollup config
2016-05-26 10:21:24 -07:00
Julie Ralph
0cb93a436d
fix(testing): add discardPeriodicTasks to be used with fakeAsync ( #8629 )
...
Closes #8616
2016-05-26 10:19:30 -07:00
Suguru Inatomi
b2e804c961
fix(metadata): Allow spacing in multiple selectors ( #7418 )
2016-05-26 10:18:31 -07:00
Igor Minar
85ce184197
refactor(compiler): remove obsolete code ( #8837 )
2016-05-26 10:15:47 -07:00
Ajay Ambre
c27bc1956b
docs(API): correct formatting of EmbeddedViewRef API doc example ( #8584 )
...
remove ... from EmbeddedViewRef API example doc comments
2016-05-26 09:53:18 -07:00
Jonathan Miles
72707d80ab
refactor(api): Correct public api variable names ( #8552 )
...
Correct public api variable names (ROUTER_DEPRETACED_TESTING -> ROUTER_DEPRECATED_TESTING)
2016-05-26 09:52:56 -07:00
Ivan Gabriele
00475f25c8
fix(doc): Add missing comma in example ( #8769 )
2016-05-26 09:50:59 -07:00
Vanga Sasidhar
bab6023eee
fix(router): Added pushState fallback for IE 9 browser.
...
Closes #6506
Closes #7929
2016-05-26 09:49:07 -07:00
Martin Probst
5e12a95789
test(security): test case for quoted URL values.
...
Test case that fixes #8701 . This is already supported with the latest sanitizer
changes, but it's good to have an explicit test case.
2016-05-26 09:39:23 -07:00
Rob Wormald
e5904f4089
fix(facade): change EventEmitter to be sync by default ( #8761 )
2016-05-26 09:34:04 -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
b9347eb01c
build: remove dependency on tsd and use @types/* instead
2016-05-25 16:42:28 -07:00
Igor Minar
4dbd8ed6b8
refactor: remove unnecessary annotations
2016-05-25 16:42:28 -07:00
Misko Hevery
cb980d3e43
fix(ci): incorrect import
2016-05-25 16:22:55 -07:00
Misko Hevery
d0a64f9c86
fix: broken build
2016-05-25 16:03:11 -07:00
Alex Eagle
16ef21d086
fix(ngc): depend on correct tsc-wrapped package
2016-05-25 15:34:43 -07:00
Miško Hevery
39ecd01b86
chore: audit @angular/core API classification ( #8808 )
2016-05-25 15:00:05 -07:00
Matias Niemelä
5e0f8cf3f0
feat(core): introduce support for animations
...
Closes #8734
2016-05-25 13:56:50 -07:00
Alex Eagle
4c26397937
chore(ngc): refactor out tsc-wrapped
...
This allows angular's build to depend on some extensions, but not on code generation, and breaks a cycle in the angular build
We now merge ts-metadata-collector into tsc-wrapped and stop publishing the former.
2016-05-25 09:45:55 -07:00
Igor Minar
2ab1085dfb
fix(core): remove @internal annotation from PLATFORM_CORE_PROVIDERS
...
This symbol is no longer reexported at the top level, so it's safe to not mark it as internal.
This fixes the offline compilation which got broken by this symbol not being present in the d.ts
files when the compiler tries to do a deep import.
Closes #8819
2016-05-25 08:22:07 -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
Wesley Cho
53628e19ac
fix(compiler): add ability to parse : in * directives
...
- Add ability to parse bindings properly when `:` is present when using a directive with the `*` prefix
Closes #6038
2016-05-24 21:43:10 -07:00
Misko Hevery
62dd3ceb64
Revert "Don't update the location during initial router navigation"
...
This reverts commit d5066a9a0f
.
2016-05-24 21:43:10 -07:00
Jay Phelps
d5066a9a0f
Don't update the location during initial router navigation
...
Closes #6069
2016-05-24 21:34:59 -07:00
Alfonso Presa
5f3d02bc7c
fix(Animation): Problem decimals using commas as decimal separation
...
Tests where failing due to `.` character being used as decimal separator in some regional settings (like spanish for example)
Closes #6335
Closes #6338
2016-05-24 21:23:46 -07:00
Utsav Shah
92340350d2
fix(http): Set response.ok
...
The ok property was not being set on response objects.
It's now set based on the status code.
Closes #6390
Closes #6503
2016-05-24 21:20:27 -07:00
gdi2290
d4827caa08
refactor(DomRootRenderer): allow registeredComponents access
...
Closes #6584
2016-05-24 21:17:11 -07:00
Gabe Scholz
6ce13b68fa
Typo in web_workers.md
...
Closes #6694
2016-05-24 21:16:11 -07:00
Borys Semerenko
e82b700ad0
docs(directives): add a deprecation comment for properties, events
...
Closes #7059
2016-05-24 21:13:56 -07:00
Grégory Bataille
60a2ba87d4
fix( #7099 ): support for comment finishing with multiple dashes
...
<!-- xxxx ------->
The issue came from a lack of support for backtracking on string
matching.
The way it is done, if the "end pattern" for consumeRawText starts with
twice the same character, you end up having problem when your string
being parsed has 3 times this char
Example
End string: xxyz
string to parse: aaaaaaxxxyz
calling consumeRawText(false, 'x', attemptParseStr('xyz')) would fail
Closes #7119
2016-05-24 21:01:41 -07:00
cexbrayat
83c19a1fbc
fix(pipes): handle undefined value in slice
...
Closes #7152
2016-05-24 20:58:14 -07:00
Wassim Chegham
1513e201bb
docs(ContentChild): add example with refs
...
Add missing example on how ContentChild works with refs
Closes #7160
Closes #7162
2016-05-24 20:57:25 -07:00
Dmytro Kulyk
a38c9a1ef7
fix(Router) Fix detect active route in depth.
2016-05-24 20:51:51 -07:00
Misko Hevery
d5f5ce82ca
Revert "fix(compiler): support string tokens with `.` inside."
...
This reverts commit 67c80fbb5e
.
2016-05-24 20:51:51 -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
Matias Niemelä
1ac38bd69a
feat(renderer): add a `setElementStyles` method
2016-05-24 18:42:05 -07:00
Victor Berchet
390cefac72
refactor(testing/server): optimize imports
2016-05-24 14:00:00 -07:00
Thierry Templier
95af14b97c
feat(http): added withCredentials support
...
Taken into account the withCredentials property within the request options:
- added corresponding property in the RequestOptions class
- added corresponding property in the Request class
- handle this property when merging options
- set the withCredentials property on the XHR object when specified
Added a test in the xhr_backend_spec.ts to check that the property is actually
set on the XHR object
Closes https://github.com/angular/http/issues/65
Closes #7281
Closes #7281
2016-05-24 11:53:43 -07:00
Thierry Templier
0f0a8ade7c
feat(http): automatically set request Content-Type header based on body type
...
Implement the ability to provide objects as request body. The following use cases
are supported:
* raw objects: a JSON payload is created and the content type set to `application/json`
* text: the text is used as it is and no content type header is automatically added
* URLSearchParams: a form payload is created and the content type set to `application/x-www-form-urlencoded`
* FormData: the object is used as it is and no content type header is automatically added
* Blob: the object is used as it is and the content type set with the value of its `type` property if any
* ArrayBuffer: the object is used as it is and no content type header is automatically added
Closes https://github.com/angular/http/issues/69
Closes #7310
2016-05-24 11:42:37 -07:00
Andreas Wissel
016f0d8e9e
fix: Typo in async.ts
...
Closes #7382
2016-05-24 11:15:51 -07:00
Victor Berchet
3e5716ec16
feat(i18n): support implicit tags/attributes
2016-05-24 10:12:19 -07:00
Victor Berchet
75e6dfb9ab
fix(browser): platform code cleanup
2016-05-23 17:57:28 -07:00
Victor Berchet
f95a604b59
fix(bootstrap): swap coreBootstrap() and coreLoadAndBootstrap() arguments
2016-05-23 17:57:28 -07:00
Victor Berchet
3ff20cd7e3
fix(core): fix build
2016-05-23 17:56:48 -07:00
Kevin-K
17f73cb7bc
docs(http): fix MockBackend example
...
imports & syntax error fix
Closes #7383
2016-05-23 17:22:36 -07:00
Brendan Wyse
fba0e2ff12
docs(browser.ts): update bootstrap injector override argument name
...
Closes #7387
2016-05-23 17:21:07 -07:00
Vamsi V
b62415c962
refactor(chore): remove unused mapToObject and objectToMap methods from serializer
...
resolves #7402
Closes #7416
2016-05-23 17:20:25 -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
Tero Parviainen
ceac045a7f
fix(compiler): have CSS parser support nested parentheses inside functions
...
Closes #7580
2016-05-23 16:58:15 -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
Pete Boere
6f3a6a55a0
Update url_search_params.ts
...
Values need to be encoded on `toString()`
Closes #7686
2016-05-23 14:43:26 -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
Vamsi Varikuti
49fb7ef421
refactor(router): Remove deprecated 'as' from ‘RouteConfig’
...
BREAKING CHANGE
Remove deprecated 'as' from ‘RouteConfig’ in favour of ‘name’
2016-05-23 13:24:36 -07:00
Peter Bacon Darwin
cbeeff2bd6
fix(Router): do not kill event-emitter on navigation failure
...
Closes #7692
Closes #7532
Closes #7692
2016-05-23 13:21:09 -07:00
Sebastian Hillig
ce013a3dd9
feat(regex_url_paths): add `regex_group_names` to handle consistency with serializers
...
By adding `regex_named_groups` to regex route configurations we can consistently map
regex matching groups to component parameters.
This should fix #7554 .
Closes #7694
2016-05-23 13:18:21 -07:00
Justin DuJardin
c43636f2bb
fix(di): type error in InvalidProviderError
...
- when trying to instantiate an injector with an unknown provider
Closes #7729
2016-05-23 13:08:10 -07:00
cjc343
9c2fe660a3
(docs) Fix pony greeting equivalence
...
Cheatsheet claims equivalence between two statements which are not equivalent
Closes #7761
2016-05-23 13:07:20 -07:00
laco0416
abc266fa35
feat(common): DatePipe supports ISO string
...
Closes #7794
2016-05-23 12:30:02 -07:00
kurt
7d853dd9ad
fix(router): ensuring MatchedUrl pass query params
2016-05-23 12:24:08 -07:00
Alex Eagle
666dc75c15
chore(lint): disallow duplicate imports from a module
...
Closes #7859
2016-05-20 15:59:33 -07:00
Pete Mertz
830aecd1a7
fix(router/parsing): change route rule error to say PascalCase instead of CamelCase
...
Closes #7874
2016-05-20 15:39:30 -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
Andrew
33c7f74cb9
style(platform/browser): fix type spacing
...
Closes #7980
2016-05-20 13:05:40 -07:00
alexcastillo
cb84cbf545
feat(shadow_css): add encapsulation support for CSS @supports at-rule
...
Closes #7944
2016-05-20 13:02:24 -07:00
Elliott Davis
b2e0946696
fix(Request): Change Request.text's return type to string
...
Change the return typing for the .text method to `string` so typescript treats it
like a normal string.
Closes #8138
2016-05-20 12:57:31 -07:00
Tobias Bosch
67c80fbb5e
fix(compiler): support string tokens with `.` inside.
...
Closes #8178
2016-05-20 12:56:02 -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
Drew Moore
1bff47f97d
docs: fix syntax errors in HostBinding metadata example
...
add missing parentheses to getters, remove erroneous brackets in HostBindings
Closes #8269
2016-05-20 10:56:11 -07:00
Victor Berchet
e8e61de28d
refactor(WebWorker): move XHR worker side
2016-05-20 10:48:55 -07:00
Victor Berchet
54f8308999
refactor(browser): merge static & dynamic platforms
2016-05-20 10:48:55 -07:00
PatrickJS
6c99746f0b
Update tools.ts
...
Closes #8296
2016-05-20 10:12:54 -07:00
PatrickJS
4086b49046
feat(enableDebugTools): return ComponentRef
...
allows for
```
bootstrap(App, [
...HTTP_PROVIDERS,
...ROUTER_PROVIDERS
])
.then(enableDebugTools)
```
without breaking the rule of always returning a value in a promise
2016-05-20 10:12:54 -07:00
Jake Garelick
19e65382f7
fix(core): accurate dev mode message for dart ( #8403 )
2016-05-20 10:01:39 -07:00
Yang Lin
c6f2b3e96b
docs(router): fix import and replace RouteConfig ( #8433 )
2016-05-20 10:00:04 -07:00
mgechev
55921be1af
fix(router-deprecated): export RootRoute
...
Fix #8449
Closes #8450
2016-05-20 09:59:21 -07:00
agpreynolds
3857c8226e
docs(MockConnection) update mockRespond usage example ( #8487 )
...
Closes : #8486
2016-05-20 09:19:59 -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
Rob Wormald
aec95015f8
docs(http): update http docs to mention .map operator
...
Closes #5947
2016-05-19 22:15:26 -07:00
gdi2290
390046d7b3
feat(AsyncPipe): allow onError argument
...
Closes #7990
2016-05-19 16:49:28 -07:00
PatrickJS
587c119c75
feat(NgZone): isStable
...
Closes #8108
2016-05-19 16:10:08 -07:00
Aliaksei Palkanau
3019140e7e
feat(http): set the statusText property from the XMLHttpRequest instance
...
Closes #4162
2016-05-19 15:58:59 -07:00
BeastCode
7a80f0d1e1
change property and event to use camel case
...
Closes #6580
2016-05-19 15:21:54 -07:00
BeastCode
0894318f50
change property and event to use camel case:
...
* some-property -> someProperty
* some-event -> someEvent
Closes #6609
2016-05-19 15:20:34 -07:00
William Welling
9019c6f937
Condition using component as well.
...
Closes #7755
2016-05-19 15:15:25 -07:00
William Welling
166b73f4f3
Condition using urlPath, component is null on UnresolvedException of child AsyncRoute.
2016-05-19 15:15:25 -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
Kai Ruhnau
a88b887a05
docs(cheatsheet): Document SVG idiosyncrasies ( #6055 )
2016-05-19 10:20:08 -07:00
Victor Berchet
6e62217b78
fix(WebWorker): remove the platform-browser dependency on compiler
2016-05-18 16:23:09 -07:00
Joost de Vries
a01a54c180
adds 'repository' metadata to npm modules ( #8649 )
2016-05-17 23:17:15 -07:00
Hannah Howard
db8290632f
fix(upgrade): fallback to root ng2 injector when element is compiled outside the document ( #8684 )
...
Currently downgraded ng2 elements fail inside a ui-router view because they are unable
to require an ng2 Injector via the require attribute of the DDO, because ui-router compiles
its templates before they are inserted in a ui-view. This adds a "fallback" behavior if
a parent injector cannot be found to go to the root ng2 Injector.
2016-05-17 15:55:53 -07:00
Hannah Howard
6cdc53c497
fix(UpgradeNg1ComponentAdapter): make bindings available on $scope in controller & link function ( #8645 )
...
Delays NG1 Directive controller instatiation where possible and pre-link function always
to the ngOnInit() lifecycle hook. This way bindings are always available on $scope in both
the controller and the link function.
2016-05-17 14:53:59 -07:00
Martin Probst
15ae710d22
feat(security): allow url(...) style values.
...
Allows sanitized URLs for CSS properties. These can be abused for information
leakage, but only if the CSS rules are already set up to allow for it. That is,
an attacker cannot cause information leakage without controlling the style rules
present, or a very particular setup.
Fixes #8514 .
2016-05-17 11:23:31 +02:00
Martin Probst
dd50124254
feat(security): allow data: URLs for images and videos.
...
Allows known-to-be-safe media types in data URIs.
Part of #8511 .
2016-05-17 10:57:14 +02:00
Tobias Bosch
ff36b0384a
fix(compiler_cli): normalize used directives
...
- e.g. needed for content projection.
Closes #8677
2016-05-16 13:07:13 -07:00
Martin Probst
50c9bed630
feat(security): expose the safe value types.
...
This allows users to properly type their `SafeHtml`, `SafeStyle`, etc values.
Fixes #8568 .
2016-05-15 11:47:06 +02:00
Martin Probst
8b1b427195
feat(security): support transform CSS functions for sanitization.
...
Fixes part of #8514 .
2016-05-14 13:25:45 +02:00
Vikram Subramanian
9a05ca95f6
fix(build): Release compiler_cli packages along with rest of @angular packages and use ANGULAR_VERSION for package version and peer dependencies.
2016-05-13 13:35:10 -07:00
Marc Laval
61b339678d
test(compiler): test schema generation only in Chrome
...
Closes #8581
2016-05-11 17:01:26 -07:00
Alex Eagle
817ddfa847
fix(compiler): allow --noImplicitAny
2016-05-11 16:56:12 -07:00
Alex Eagle
c1154b30c7
fix(compiler): allow decorators defined in the same file
2016-05-11 16:56:12 -07:00
Alex Eagle
0d71345b93
fix(codegen): codegen all files in the program, not just roots
...
fixes #8475
2016-05-11 16:56:12 -07:00
Alex Eagle
9e3df8eefe
chore(tsickle): remove redundant jsdoc types
...
tsickle doesn't like them, and anyway they are bound to get out-of-sync with the inline TS types
2016-05-10 17:38:10 +02:00
Martin Probst
3e68b7eb1f
feat(security): warn users when sanitizing in dev mode.
...
This should help developers to figure out what's going on when the sanitizer
strips some input.
Fixes #8522 .
2016-05-09 16:46:31 +02:00
Matias Niemelä
9fbafba993
chore(parsing): change internal usage of `@` to `:` for namespaced values
...
Closes #8346
2016-05-09 16:20:32 +02:00
Martin Probst
7a524e3deb
feat(security): add tests for URL sanitization.
2016-05-09 16:00:24 +02:00
Martin Probst
7b6c4d5acc
feat(security): add tests for style sanitisation.
2016-05-09 16:00:24 +02:00
Martin Probst
f86edae9f3
feat(security): add an HTML sanitizer.
...
This is based on Angular 1's implementation, parsing an HTML document
into an inert DOM Document implementation, and then serializing only
specifically whitelisted elements.
It currently does not support SVG sanitization, all SVG elements are
rejected.
If available, the sanitizer uses the `<template>` HTML element as an
inert container.
Sanitization works client and server-side.
Reviewers: rjamet, tbosch , molnarg , koto
Differential Revision: https://reviews.angular.io/D108
2016-05-09 16:00:24 +02:00
Martin Probst
df1b1f6957
feat(security): strip XSSI prefix from XHR responses.
2016-05-05 14:25:44 -07:00
Martin Probst
9099160038
chore: fix comment indent.
2016-05-05 12:46:07 -07:00
Martin Probst
67ed2e2c0a
feat(security): fill in missing security contexts.
...
Reviewers: koto, rjamet, molnarg
Differential Revision: https://reviews.angular.io/D109
2016-05-04 19:28:50 -07:00
Tobias Bosch
6d36a7a45f
chore: fix unit tests on node.js
...
Closes #8476
2016-05-04 18:00:29 -07:00
Tobias Bosch
e2b1e1577d
fix(core): don’t detach nested view containers when destroying a view
...
When a view is destroyed, we destroy all
views in view containers and should not detach them. However, previously, we also detached them which lead to problems during the iteration loop.
Closes #8458
Closes #8471
Introduced by 0c600cf6e3
2016-05-04 16:27:20 -07:00
vsavkin
b30ddfbfc5
chore(router): clang-format
2016-05-04 15:01:27 -07:00
vsavkin
abfb522f83
refactor(router): reuse existing segmentes when constructing new route trees
2016-05-04 14:51:04 -07:00
vsavkin
b8136cc26e
fix(router): provide a top-level route segment for injection
2016-05-04 14:51:04 -07:00
vsavkin
d00b26d941
refactor(router): update link to reuse url segments when possible
2016-05-04 14:51:04 -07:00
vsavkin
12637a761c
refactor(router): make names consistent
2016-05-04 14:50:00 -07:00
vsavkin
1a0aea67a0
feat(core): add a component resolver that can load components lazily using system.js
2016-05-04 14:50:00 -07:00
vsavkin
0f1465b899
feat(router): update router to support lazy loading
2016-05-04 14:50:00 -07:00
Tobias Bosch
a81923b793
fix(compiler): emit correct types for literal arrays and maps.
2016-05-04 12:14:44 -07:00
Tobias Bosch
7150ace7c7
fix(compiler): support lifecycle hooks in compiler_cli
2016-05-04 12:14:43 -07:00
Tobias Bosch
bdce154282
chore: add test script for compiler_cli
2016-05-04 12:14:43 -07:00
Tobias Bosch
5a84048f72
chore: adjust build for `tools/metadata` name change
2016-05-04 12:14:38 -07:00
Igor Minar
52595f52f9
chore: make workaround_empty_observable_list_diff @internal
2016-05-04 01:12:40 -06:00
Tobias Bosch
edec158dd8
fix(compiler_cli): allow to use builtin directives like `NgIf`, …
...
Related to #8448
Closes #8454
2016-05-03 20:49:17 -07:00
Tobias Bosch
0297398f5e
chore: clang-format master
2016-05-03 18:56:39 -07:00
Igor Minar
9485f5a813
fix: platform-server should declare it's dependency on parse5 via package.json
2016-05-03 18:07:52 -06:00
Tobias Bosch
eba6e7946d
refactor(compiler_cli): move it into modules/@angular and integrate properly into the build
...
This also does no more depend on a version
on npm for the compiler_cli.
Also runs the tests for tools/metadata
2016-05-03 15:57:49 -07:00
Igor Minar
b600915953
build: add licensing preamble to umd bundles
2016-05-03 13:59:30 -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
Vikram Subramanian
509f4ec611
fix(testing): Check for pending macrotasks in ComponentFixture.whenStable() and ComponentFixture.isStable()
...
Closes #8389
2016-05-03 11:50:35 -07:00
Felix Itzenplitz
27a7b51d99
fix(docs): upgrade deprecated ngFor-Syntax
2016-05-03 11:49:33 -07:00
vsavkin
b98c9e74e1
docs(router): add api docs
2016-05-03 11:35:07 -07:00
vsavkin
9f784dcc5a
cleanup(router): fix e2e tests
2016-05-03 10:25:44 -07:00
vsavkin
b625f2471a
feat(router): make RouterLink accept single values
2016-05-03 10:25:44 -07:00
vsavkin
3aa2606ff1
cleanup(router): make names consistent
2016-05-03 10:25:44 -07:00
vsavkin
89704e0f93
fix(router): add support for ../
2016-05-03 10:25:44 -07:00
Martin Probst
908a102a87
feat: security implementation in Angular 2.
...
Summary:
This adds basic security hooks to Angular 2.
* `SecurityContext` is a private API between core, compiler, and
platform-browser. `SecurityContext` communicates what context a value is used
in across template parser, compiler, and sanitization at runtime.
* `SanitizationService` is the bare bones interface to sanitize values for a
particular context.
* `SchemaElementRegistry.securityContext(tagName, attributeOrPropertyName)`
determines the security context for an attribute or property (it turns out
attributes and properties match for the purposes of sanitization).
Based on these hooks:
* `DomSchemaElementRegistry` decides what sanitization applies in a particular
context.
* `DomSanitizationService` implements `SanitizationService` and adds *Safe
Value*s, i.e. the ability to mark a value as safe and not requiring further
sanitization.
* `url_sanitizer` and `style_sanitizer` sanitize URLs and Styles, respectively
(surprise!).
`DomSanitizationService` is the default implementation bound for browser
applications, in the three contexts (browser rendering, web worker rendering,
server side rendering).
BREAKING CHANGES:
*** SECURITY WARNING ***
Angular 2 Release Candidates do not implement proper contextual escaping yet.
Make sure to correctly escape all values that go into the DOM.
*** SECURITY WARNING ***
Reviewers: IgorMinar
Differential Revision: https://reviews.angular.io/D103
2016-05-03 09:21:43 -07:00
Tobias Bosch
dd6e0cf1b5
fix(compiler): fix where pipes live
...
Impure pipes need to live on the view
that used them and need a new instance for
each call site.
Impure pipes need to live on the component view, cached across all child views,
and need a new pure proxy for each for
each call site that lives on the view
of the call site.
Fixes #8408
This bug was introduced not long ago by 152a117d5c
2016-05-03 09:00:23 -07:00
Tobias Bosch
3a40cb1a85
fix(compiler): calculate the right moduleUrl
2016-05-02 22:36:32 -06:00
Tobias Bosch
00d3b6083c
fix(compiler): support css stylesheets in offline compiler
2016-05-02 15:06:46 -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
Misko Hevery
107016ec12
chore: router move import changes
2016-05-02 13:27:03 -07:00
Miško Hevery
d930ad1816
chore: router move-only
2016-05-02 13:27:03 -07:00
Tobias Bosch
b6fd81169b
feat(core): support the decorator data that tsickle produces
2016-05-01 23:40:59 -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
cd52318f48
fix: parse browser detection lazily
2016-05-01 22:27:55 -07:00
Misko Hevery
2570b72158
fix: textSelection on FireFox
2016-05-01 22:27:55 -07:00
Misko Hevery
6e79de794c
fix: function name shim test
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