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
Olivier Chafik
6686bc62f6
feat(benchpress): add custom user metric to benchpress
...
This is a continuation of #7440 (@jeffbcross).
Closes #9229
2016-06-16 07:30:53 -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