Pawel Kozlowski
f443ecbfa6
refactor(router): use compiler's public API in imports
...
Closes #4662
2015-10-12 20:14:22 +00:00
Pawel Kozlowski
8667b760f4
refactor(router): use DI imports from public API
...
This allows us to create smaller CJS bundles for router,
where the bundle doesn't duplicate code from angular2 core.
2015-10-12 20:14:22 +00:00
Alex Eagle
b96784756c
chore(docs): remove @View decorator from examples in docs
...
Closes #4666
2015-10-11 22:02:38 +00:00
vsavkin
1eb0162cde
feat(di): rename Binding into Provider
...
Closes #4416
Closes #4654
2015-10-11 05:13:31 +00:00
Alex Rickabaugh
90191ce261
refactor(router): use ApplicationRef to provide the first bootstrapped component as ROUTER_PRIMARY_COMPONENT automatically.
...
This removes the routerBindings function as it is no longer necessary. ROUTER_BINDINGS will automatically pick the first bootstrapped component to satisfy ROUTER_PRIMARY_COMPONENT.
BREAKING CHANGE:
Before: bootstrap(MyComponent, [routerBindings(myComponent)]);
After: bootstrap(MyComponent, [ROUTER_BINDINGS]);
Closes #4643
2015-10-10 05:19:55 +00:00
Alex Eagle
867c08ac84
chore(typings): mark underscore methods @internal.
...
This allows TypeScript to produce an API surface which matches the Dart semantics.
I found these with:
gulp build.js.dev && find dist/js/dev/es5/angular2/src -name "*.d.ts" -exec grep -H -n '^ *_' {} \;
Closes #4638
2015-10-10 02:18:33 +00:00
Victor Berchet
a8c34ae290
refactor(MapWrapper): drop delete(), get(), forEach() and size
...
Closes #4618
2015-10-09 20:07:43 +00:00
Pascal Precht
cd2050b6e0
docs(router): route alias has to be written in PascalCase
...
Closes #4547
2015-10-09 03:25:51 +00:00
Brandon Roberts
075011f2fe
fix(docs): Updated docs for default router location strategy
...
Closes #4517
2015-10-09 02:57:10 +00:00
vsavkin
d63f3c123e
fix benchmarks
2015-10-08 13:54:44 -07:00
vsavkin
8b725c77fd
fix(tests): fix tests
2015-10-08 13:54:44 -07:00
Alex Eagle
5458036de7
fix(typings): update test.typings for abstract superclasses
2015-10-08 13:54:43 -07:00
Alex Eagle
6075509f26
chore(typing): extract abstract superclasses to replace @private constructors
2015-10-08 13:54:43 -07:00
Brian Ford
ee32b1bc37
feat(router): allow async routes to be defined with "loader"
2015-10-08 12:29:14 -07:00
Victor Berchet
aee176115b
refactor(ListWrapper): drop forEach and removeLast
...
Closes #4584
2015-10-07 17:17:31 +00:00
Victor Berchet
aaa215514b
refactor(ListWrapper): get ride of ListWrapper.map
2015-10-07 06:39:14 +00:00
Igor Minar
15ab6f6ea8
fix(location): improve the 'No base href set' error message
2015-10-06 20:59:02 -07:00
Alex Eagle
f7aa890ade
chore(docs): rename @private to @internal
...
The latter is understood by TypeScript's --stripInternal option, so this lets us
rely more on the tooling provided by typescript team.
2015-10-06 17:08:41 -07:00
Alex Eagle
208f3d4c65
fix(typings): repair broken type-checking for StringMap
...
Note that the previous type of StringMap was overly permissive and didn't catch errors.
Also we have to explicitly type empty objects, which is explained here:
https://github.com/Microsoft/TypeScript/issues/5089
Closes #4487
2015-10-03 01:09:42 +00:00
Alex Eagle
7c4199cd1c
chore(typings): remove StringMap
...
This was a poorly typed attempt to mimic TypeScript's index signatures,
which we can use instead.
This eliminates a very strange type that we were exposing to users, but
not re-exporting through our public API.
Fixes #4483
2015-10-03 01:09:42 +00:00
Tobias Bosch
6248a5e846
refactor(core): move core/compiler to core/linker, adjust imports
2015-10-02 08:42:12 -07:00
vsavkin
adbfd29fd7
feat(core): renames Property into Input and Event into Output
...
BREACKING CHANGE:
Before: @Directive({properties: ['one'], events: ['two']})
After: @Directive({inputs: ['one'], outputs: ['two']})
Before: @Component({properties: ['one'], events: ['two']})
After: @Componet({inputs: ['one'], outputs: ['two']})
Before: class A {@Property() one; @Event() two;}
After: class A {@Input() one; @Output() two;}
2015-10-01 04:36:23 +00:00
Alex Eagle
9b7378d132
chore(typings): remove traceur-runtime.d.ts
...
fixes #4297
Closes #4415
2015-09-30 00:07:16 +00:00
Alex Eagle
b4fe590b2d
chore(ts): fix TODOs that were pending on 1.6 upgrade
...
Closes #4377
2015-09-29 03:23:25 +00:00
Brian Ford
ec68074e69
docs(router): improve docs for Instruction and related classes
...
Closes #4303
2015-09-22 21:27:47 -07:00
Brian Ford
0366f317af
docs(router): improve docs for Location and related classes
...
Closes #4299
2015-09-23 00:47:15 +00:00
Brian Ford
c01f327194
docs(router): improve docs for lifecycle hooks
...
Closes #4300
2015-09-23 00:47:15 +00:00
Brian Ford
5c0a9eff62
docs(router): improve docs for RouteDefinition classes
2015-09-23 00:47:15 +00:00
Brian Ford
6e0ca7f39a
fix(router): use StringWrapper.startsWith
2015-09-21 12:13:07 -07:00
Brian Ford
43f97a951c
refactor(router): move assertComponentExists into facade
...
This is to make way for a refactor to the ng 1.x router directives,
which will use strings rather than controller functions in route configs.
2015-09-21 11:17:19 -07:00
Naomi Black
563fffd9b0
docs(chore): fix bad links in the API docs
2015-09-16 23:28:16 -07:00
Misko Hevery
6db9f9013d
fix(api): remove UNDEFINED
2015-09-15 18:12:05 +00:00
David Fuka
255ed69392
docs(router): Typo
...
Closes #4152
2015-09-15 18:07:00 +00:00
Brian Ford
5298eb0709
feat(router): enforce convention of CamelCase names in route aliases
...
Closes #4083
2015-09-14 22:46:02 -07:00
Alex Rickabaugh
193792c27f
refactor(router): Switch from using APP_COMPONENT binding to a manual ROUTER_PRIMARY_COMPONENT binding.
...
With the coming bootstrapping changes, a single application (and thus Router) can have multiple root components. One of these needs to be identified as the "primary" component from which the Router will load its configuration. This is now done by providing a ROUTER_PRIMARY_COMPONENT binding to the primary component type.
2015-09-14 23:37:39 +00:00
Brian Ford
d2458866c1
refactor(router): remove unused Pipeline
2015-09-14 21:21:57 +00:00
Brian Ford
309944931f
fix(router): recognize child components with empty segments
...
Previosly, recognition ended when a parent captured all the parsed URL segments.
This caused routes that delegated from a parent to a child with an empty segment
to never be recognized.
Closes #4178
2015-09-14 20:22:40 +00:00
Jason Teplitz
787d1f955f
fix(Typings): Remove public exports added in 1926335b85
...
Closes #4147
2015-09-11 19:16:57 -07:00
Brian Ford
d9036c6cf3
feat(router): introduce new navigate method
...
Previously, `router.navigate` took a string representing the URL.
Now, it accepts an array that mirrors the link DSL.
Closes #4040
BREAKING CHANGE
The old method has been renamed to `router.navigateByUrl`.
Either change your navigation calls to use the DSL (preferred) or
call `router.navigateByUrl` instead.
Closes #4074
2015-09-11 17:20:13 -07:00
Brian Ford
acc2722cb8
refactor(router): rename navigate and navigateInstruction methods
2015-09-11 17:17:45 -07:00
Brian Ford
5e49d7e624
fix(router): load route config from async instructions
...
Previously, async routes generated from links would not load the configs of
their resolved components, which led to broken links in the children of the
async instruction's component.
This commit fixes the bookkeeping in the Router to correctly load the configs.
Fixes internal b/23791558
Closes #4146
2015-09-11 16:23:40 -07:00
vsavkin
f6cc573687
fix(exception_handler): fix error messages of wrapped exceptions
...
Closes #4117
2015-09-10 22:26:56 +00:00
Brian Ford
77e8304fc4
fix(router): do not reuse common children with different parents
2015-09-09 12:03:59 -07:00
Brian Ford
8aec215ca0
fix(router): throw when generating non-terminal link
...
Closes #3979
Closes #4092
2015-09-09 15:53:30 +00:00
Victor Berchet
998c7c2e03
doc: add some API doc
...
Closes #4060
2015-09-09 02:49:07 +00:00
Jeff Cross
f14b212dc9
refactor: export core APIs from angular2/core
...
This change moves many APIs to the angular2/core export.
This change also automatically adds FORM_BINDINGS in
the application root injector.
BREAKING CHANGE:
Many dependencies that were previously exported from specific
APIs are now exported from angular2/core. Affected exports, which
should now be included from angular2/core include:
angular2/forms
angular2/di
angular2/directives
angular2/change_detection
angular2/bootstrap (except for dart users)
angular2/render
angular2/metadata
angular2/debug
angular2/pipes
Closes #3977
2015-09-05 07:01:34 +00:00
Harry Terkelsen
d8c5ab232c
refactor: add leading underscore to private fields
...
Closes #4001
2015-09-05 00:54:50 +00:00
vsavkin
60ce884671
feat(core): remove the (^ syntax and make all DOM events bubbling
...
BREAKING CHANGE
Before
<div (^click)="onEventHandler()">
<button></button>
</div>
After
<div (click)="onEventHandler()">
<button></button>
</div>
Closes #3864
2015-09-01 15:54:47 +00:00
Isaac Park
3791c4a682
fix(RouteRegistry): initialize RouteParams.params
...
Fix a bug caused by RouteRegistry.generate not initializing RouteParams.params to a StringMap
Closes #3755
2015-08-31 22:02:50 +00:00
Misko Hevery
e916836261
chore(ts2dart): replace List with Array
...
Closes #3514
2015-08-31 21:32:10 +00:00
Brian Ford
fa2c6791b4
docs(router): improve docs for RouterOutlet methods
...
Closes #3909
2015-08-31 18:09:32 +00:00
Brian Ford
ad16e9d910
refactor(router): move setting reuse flag from RouterOutlet to Router
2015-08-31 18:09:32 +00:00
Brian Ford
36eb9d392d
feat(router): router-link-active CSS class support
...
The `[router-link]` directive now applies the `router-link-active` CSS
class to the associated element whenever the link is active.
Closes #3209
2015-08-31 18:09:32 +00:00
Brian Ford
de37729823
feat(router): implement Router.isRouteActive
2015-08-31 18:09:32 +00:00
Brian Ford
e1a7e0329c
feat(router): hash-cons ComponentInstructions
2015-08-31 18:09:32 +00:00
Brian Ford
76e1f863a2
docs(router): add description for Url class
2015-08-31 18:09:32 +00:00
vsavkin
343dcfa0c0
refactor(tests): removed @IMPLEMENTS
2015-08-26 15:06:25 -07:00
Jeff Cross
8ed22ce6e7
chore: update all import paths
2015-08-25 15:33:23 -07:00
Brian Ford
3963e0ab39
refactor(router): rename HTML5LocationStrategy to PathLocationStrategy
...
"HTML5" is a bit confusing. We want to differentiate between persisting location state
to the URL path, and the URL hash. Hence `PathLocationStrategy`.
BREAKING CHANGE
`HTML5LocationStrategy` -> `PathLocationStrategy`
Closes #3776
2015-08-24 12:13:53 -07:00
Brian Ford
964884e761
Revert "Revert "refactor(router): move ROUTE_DATA token into own file""
...
This reverts commit abb3bd266b
.
2015-08-20 13:19:18 -07:00
Victor Berchet
abb3bd266b
Revert "refactor(router): move ROUTE_DATA token into own file"
...
This reverts commit 78a8ba2307
.
2015-08-20 08:06:24 -07:00
Brian Ford
78a8ba2307
refactor(router): move ROUTE_DATA token into own file
...
This change is to accomodate the router in Angular 1.x
2015-08-19 20:27:39 +00:00
Brian Ford
72e0b8f7dc
fix(router): allow router-link to link to redirects
...
Closes #3335
Closes #3624
2015-08-19 01:34:46 +00:00
Brian Ford
5c95b376b5
fix(router): subscribe should return subscription
...
Closes #3491
Closes #3695
2015-08-19 01:34:08 +00:00
Daniel Rasmuson
ed81cb94b0
feat(router): user metadata in route configs
...
Provide the ability to attach custom data onto a route and retrieve
that data as an injectable (RouteData) inside the component.
Closes #2777
Closes #3541
2015-08-18 10:33:19 -07:00
Misko Hevery
ea6673947c
refactor: rename annotations to metadata
...
BREAKING CHANGE (maybe)
Well as long as our customers use public API this should not be a
breaking change, but we have changed import structure as well as
internal names, so it could be breaking.
import:
angular2/annotations => angular2/metadata
Classes:
*Annotations => *Metadata
renderer.DirectiveMetadata => renderer.RendererDirectiveMetadata
renderer.ElementBinder => renderer.RendererElementBinder
impl.Directive => impl.DirectiveMetadata
impl.Component => impl.ComponentMetadata
impl.View => impl.ViewMetadata
Closes #3660
2015-08-17 21:23:25 +00:00
Brian Ford
26d2ea8afc
fix(router): fix regression with generating links to async routes
...
Closes #3650
2015-08-14 22:32:48 +00:00
Misko Hevery
60af19f0e1
refactor: rename all const to UPPER_CASE
...
Closes #3573
BREAKING CHANGE
Rename:
- `appComponentTypeToken` => `APP_COMPONENT`
- `coreDirectives` => `CORE_DIRECTIVES`
- `formDirectives` => `FORM_DIRECTIVES`
- `formInjectables` => `FORM_BINDINGS`
- `httpInjectables` => `HTTP_BINDINGS`
- `jsonpInjectables` => `JSONP_BINDINGS`
- `PROTO_CHANGE_DETECTOR_KEY` => `PROTO_CHANGE_DETECTOR`
- `appComponentRefPromiseToken` => `APP_COMPONENT_REF_PROMISE`
- `appComponentTypeToken` => `APP_COMPONENT`
- `undefinedValue` => `UNDEFINED`
- `formDirectives` => `FORM_DIRECTIVES`
- `DOCUMENT_TOKEN` => `DOCUMENT`
- `APP_ID_TOKEN` => `APP_ID`
- `MAX_IN_MEMORY_ELEMENTS_PER_TEMPLATE_TOKEN` => `MAX_IN_MEMORY_ELEMENTS_PER_TEMPLATE`
- `appBaseHrefToken` => `APP_BASE_HREF`
2015-08-13 21:18:31 +00:00
Brian Ford
903a0f0513
fix(router): throw when component in route config is not defined
...
Close #3265
Closes #3569
2015-08-11 21:21:32 +00:00
Brian Ford
5a8b1bcaec
docs(router): add documentation for lifecycle hooks
...
Closes #3334
2015-08-10 10:47:37 -07:00
Brian Ford
ac6227e434
feat(router): auxiliary routes
...
Closes #2775
2015-08-10 10:47:37 -07:00
Brian Ford
450d3630cc
test(router): add tests for router.d.ts
...
Closes #3282
2015-08-05 00:29:32 +00:00
mgechev
c0adae69ac
docs(Router): router config
...
Closes #2853
2015-08-04 02:03:26 +00:00
Matias Niemelä
7bf7ec6d9c
fix(router): ensure navigation via back button works
...
The router will now navigate and respect the current address value
accordingly whenever a popState event is handled.
Closes #2201
2015-08-03 22:24:57 +00:00
Alex Eagle
3c58878b19
chore(build): Upgrade to TypeScript@1.5.3
...
This change also makes us compliant with 1.6.0-dev compiler,
so we can do some experiments with apps that use 1.6 features
and compile against Angular.
We should probably add a travis build for 1.6 so we stay compatible
with both versions.
2015-07-31 20:01:27 +00:00
Matias Niemelä
fdffcaba9b
feat(router): use querystring params for top-level routes
...
Closes #3017
2015-07-22 14:40:55 -07:00
Alex Eagle
de18da2a0d
feat(build): require parameter types
...
Fixes #2833
2015-07-21 06:20:13 -07:00
Brian Ford
011fab37af
fix(router): improve error for missing base href
...
Closes #3096
2015-07-17 14:00:04 -07:00
Brian Ford
c6409cb624
fix(router): throw when reserved characters used in route definition
...
Closes #3021
2015-07-17 10:51:23 -07:00
Brian Ford
4d28167bc0
feat(router): add interfaces for route definitions in RouteConfig
...
Closes #2261
2015-07-16 16:36:22 -07:00
Brian Ford
b26f99787e
chore(router): fix formatting
2015-07-15 11:10:39 -07:00
Brian Ford
8bdca5c03e
fix(router): improve error messages for routes with no config
...
Closes #2323
2015-07-15 10:28:25 -07:00
Matias Niemelä
5677bf73ca
feat(router): introduce matrix params
...
Closes #2774
Closes #2989
2015-07-13 17:15:13 -07:00
Brian Ford
a9a552c112
feat(router): lifecycle hooks
...
Closes #2640
2015-07-13 09:12:15 -07:00
Peter Bacon Darwin
2e4a2a0e5a
chore(doc-gen): remove unnecessary `@public` and `@exportedAs` tags
2015-07-11 07:21:46 +01:00
Matias Niemelä
d6dadc6efc
fix(router): fix broken `HashLocationStrategy` string issue for dart
2015-07-09 13:21:17 -07:00
Victor Berchet
447926dc08
refactor(RegExp): use /.../ to create RegExp literal
...
fixes #2691
2015-07-09 09:14:25 +02:00
Matias Niemelä
caa252e57b
chore(router): change `substr` to `substring`
2015-07-08 15:46:51 -07:00
Matias Niemelä
c177d889a2
fix(router): ensure that page refresh with hash URLs works
...
This patch fixes the `HashLocationStrategy` to always return a string
path value without a hash symbol as the starting value.
Closes #2920
2015-07-08 15:08:17 -07:00
Brian Ford
286a249a9a
feat(router): support deep-linking to siblings
...
Closes #2807
2015-07-07 14:54:59 -07:00
Brian Ford
d828664d0c
fix(router): allow generating links with numeric params
2015-07-07 14:54:59 -07:00
Igor Minar
1c94c32f4d
fix(router): child routers should delegate navigation to the root router
...
There is an e2e tests in the examples/routing app testing this behavior
2015-07-02 23:21:33 -07:00
Igor Minar
2ed251a5db
docs(router): fix doc
2015-07-02 23:21:05 -07:00
vsavkin
f0e962c55e
feat(di): removed app injector
...
BREAKING CHANGE:
THe appInjector property has been removed. Instead use viewInjector or hostInjector.
2015-07-01 13:33:43 -07:00
Brian Ford
1fb948461e
style: fix formatting for real
2015-06-30 20:38:08 -07:00
Brian Ford
27c050be86
style: fix formatting
2015-06-30 19:55:44 -07:00
Brian Ford
f66ce096d8
feat(router): support deep-linking to anywhere in the app
...
Closes #2642
2015-06-30 17:21:50 -07:00
Alex Eagle
44891996b5
fix(build): add missing return types now enforced by linter
2015-06-29 15:31:41 -07:00
Victor Berchet
27ad984626
refactor(Router): re-use resolved promise instances
2015-06-29 21:27:07 +02:00
Victor Berchet
1f04f70eda
refactor(Router): idiomatic TS
2015-06-29 21:27:07 +02:00
Victor Berchet
eea989bef8
fix(Router): mark Pipeline and RouteRegistry as Injectable
...
fix #2755
2015-06-29 21:27:07 +02:00
vsavkin
22d3943831
refactor(di): unified di injector and core injector
...
BREAKING CHANGES:
* InjectAsync and InjectLazy have been removed
* toAsyncFactory has been removed
2015-06-26 15:59:18 -07:00
Tobias Bosch
c8bdacb195
refactor(render): cleanup access to native dom elements
...
BREAKING CHANGES:
- rename `ElementRef.domElement` to `ElementRef.nativeElement`
- add `Renderer.getNativeElementSync` to make the app side
less dependent on the dom renderer.
- don’t use `ElementRef.nativeElement` in directives but
use the methods on `Renderer` directly.
- Removed `ElementRef.setAttribute`. Use `Renderer.setElementAttribute` instead.
Closes #2712
Last part of #2476
Closes #2476
2015-06-23 17:27:59 -07:00
Brian Ford
a67f2314f9
feat(router): add support for hash-based location
...
Closes #2555
2015-06-22 18:46:20 -07:00
Brian Ford
e5de1f771a
refactor(router): refactor BrowserLocation into LocationStrategy
...
This makes it easy to mock browser location and paves the way to
implementing hash routing.
2015-06-22 16:14:24 -07:00
Matias Niemelä
2d2ae9b8d8
feat(router): enforce usage of ... syntax for parent to child component routes
2015-06-19 20:54:45 -04:00
Brian Ford
bc798b182d
fix(router): return promise with error handler
...
See https://github.com/angular/angular/pull/2528\#discussion_r32493195
2015-06-18 14:57:33 -07:00
Martin Probst
dfd30910aa
feat: remove MapWrapper.contains().
2015-06-18 14:55:12 -07:00
Martin Probst
be7ac9fd41
feat: remove MapWrapper.create()/get()/set().
...
Better dart2js code, better Angular code.
2015-06-18 14:55:12 -07:00
Martin Probst
c7e48350d3
chore: kill ListWrapper.create() and .push().
...
These wrappers are not natively understood by
ts2dart. Removing them will improve Dart2JS
compilation due to fewer megamorphic calls to List
functions.
It also makes Angular code more succinct and
improves type safety in Angular due to better type
inference of the Array component type.
This change exposed several bugs in Angular.
2015-06-17 16:21:55 -07:00
Tobias Bosch
5dee8e26cc
fix(views): remove dynamic component views, free host views, free embedded views
...
Closes #2472
Closes #2339
BREAKING CHANGE
- `Compiler.compile` has been removed, the only way to compile
components dynamically is via `Compiler.compileInHost`
- `DynamicComponentLoader.loadIntoExistingLocation` has changed:
* renamed into `loadIntoLocation`
* will always create the host element as well
* requires an element with a variable inside of the host component view
next to which it will load new component.
- `DynamicComponentLoader.loadNextToExistingLocation` was renamed into
`DynamicComponentLoader.loadNextToLocation`
- `DynamicComponentLoader.loadIntoNewLocation` is removed
* use `DynamicComponentLoader.loadNextToLocation` instead
and then move the view nodes
manually around via `DomRenderer.getRootNodes()`
- `AppViewManager.{create,destroy}Free{Host,Embedded}View` was removed
* use `AppViewManager.createViewInContainer` and then move the view nodes
manually around via `DomRenderer.getRootNodes()`
- `Renderer.detachFreeView` was removed. Use `DomRenderer.getRootNodes()`
to get the root nodes of a view and detach them manually.
2015-06-17 11:33:51 -07:00
Victor Berchet
cdfb635737
refactor(facade): refactor type check function - is*()
2015-06-16 19:27:34 +02:00
Brian Ford
cab1d0ef0f
feat(router): allow configuring app base href via token
2015-06-15 18:04:09 -07:00
Matias Niemelä
73d152506b
fix(router): ensure that root URL redirect doesn't redirect non-root URLs
...
Closes #2221
2015-06-15 10:48:47 -07:00
Matias Niemelä
3154cea0bf
docs(router): `alias` should be `as`
2015-06-15 10:48:29 -07:00
Brian Ford
5782f063f1
fix(router): rethrow exceptions
...
Closes #2391
2015-06-12 18:27:00 -07:00
Martin Probst
f3d741854a
fix: add types for ts2dart's façade handling.
...
... in many, many places.
2015-06-12 15:41:08 -07:00
Matias Niemelä
cdc7b03e67
fix(router): avoid two slash values between the baseHref and the path
2015-06-12 15:23:29 -07:00
Matias Niemelä
e372cc779d
fix(router): do not prepend the root URL with a starting slash
2015-06-12 15:23:29 -07:00
Victor Berchet
f3b49378e4
feat(Directive): Have a single Directive.host which mimics HTML
...
fixes #2268
BREAKING CHANGE:
Before
@Directive({
hostListeners: {'event': 'statement'},
hostProperties: {'expression': 'hostProp'},
hostAttributes: {'attr': 'value'},
hostActions: {'action': 'statement'}
})
After
@Directive({
host: {
'(event)': 'statement',
'[hostProp]': 'expression' // k & v swapped
'attr': 'value',
'@action': 'statement'
}
})
2015-06-11 13:11:09 -07:00
gdi2290
92f1af86d8
perf(RouterLink): use hostListeners for click
...
with a `<router-outlet>` and lots of `router-link` you start to see
noticeable lag since we’re not removing the listener
Closes #2401
2015-06-10 16:20:58 -07:00
Brian Ford
cd95e078fe
feat(router): add routing to async components
...
Note that this also removes the `components` option from `RouteConfig`.
This functionality will be reintroduced with the more general `//` routing.
See #2329 for more details.
2015-06-08 15:49:56 -07:00
Jeff Cross
ba07f39347
refactor(router): convert to typescript
...
Fixes #2001
2015-06-02 11:06:44 -07:00
Victor Berchet
d7df853bde
feat(Directive): convert properties to an array
...
fixes #2013
BREAKING CHANGE:
Before
@Directive(properties: {
'sameName': 'sameName',
'directiveProp': 'elProp | pipe'
})
After
@Directive(properties: [
'sameName',
'directiveProp: elProp | pipe'
])
2015-05-29 11:44:43 +02:00
Marc Laval
2287938f5a
fix(router): event.defaultPrevented is not reliable (IE11)
2015-05-22 13:30:44 +02:00
Rado Kirov
c45283216f
fix(router): router link should navigate to non-base Url.
...
While still displaying full base + custom part of url in the href.
2015-05-20 11:01:09 -07:00
Brian Ford
791caf0037
fix(router): use appRootComponentToken to get root route configs
...
Closes #1947
2015-05-19 14:36:45 -07:00
Brian Ford
83b97c485b
refactor(router): use DynamicComponentLoader instead of ViewContainer
2015-05-18 15:57:08 -07:00
Brian Ford
5db89071d4
fix(router): improve route matching priorities
2015-05-18 15:57:08 -07:00
Brian Ford
c29ab86d85
refactor(router): improve control flow of descendant route activation
2015-05-18 15:57:08 -07:00
Victor Berchet
0114cd97b6
refactor(RouteRegistry): optimize recognize()
2015-05-18 19:32:33 +02:00
Victor Berchet
fc13cdab3a
refactor(router): add types
2015-05-18 19:32:33 +02:00
Brian Ford
390cfb793b
fix(router): generate links for router-link with baseHref
2015-05-13 12:22:45 -07:00
Brian Ford
17392f663f
fix(router): sort possible routes by cost
2015-05-13 11:57:57 -07:00
Rado Kirov
a574154108
fix(router): add baseUrl to relative paths, but not absolute.
...
Closes #1783
2015-05-11 18:55:24 -07:00
Brian Ford
ac80df0959
fix(router): reuse common parent components
2015-05-11 15:49:40 -07:00
Rado Kirov
77d1fc149a
fix(router): router-link works without params
...
Router-link attaches a listener to prevent default behavior and
navigate.
Closes: 1689
2015-05-11 11:58:38 -07:00
Rado Kirov
c2a42d5d2b
fix(location): dartium does not like pushState with null.
...
According to
https://developer.mozilla.org/en-US/docs/Web/Guide/API/DOM/Manipulating_the_browser_history
the value of the title parameter is irrelevant anyways.
2015-05-11 11:48:45 -07:00
Tobias Bosch
4f3433b5bd
feat(view): allow to transplant a view into a ViewContainer at another place.
...
Closes #1492 .
2015-05-08 21:35:01 -07:00
Brian Ford
853d1de6ec
fix(router): strip base href from URLs when navigating
2015-05-08 13:51:43 -07:00
Rado Kirov
c9cec60007
fix(router): fix for leading slash in dart
...
Using string1 === string2 translates to identical(string1, string2) in
dart, which is incorrect as it is possilbe for dart strings to have
different reference.
2015-05-05 15:19:06 -07:00
Rado Kirov
f356d03362
feat(dom): add location and history as DOM-like APIs.
...
Instead of global access methods.
2015-05-05 14:50:53 -07:00
Rado Kirov
8e1d53b5e9
feat(router): adds the router to the self-executing bundle.
...
Due to limitation of system build, the router cannot have its own sfx
bundle.
Fixes an issue with RouteConfig decorator by moving it into its own
file.
2015-05-05 10:55:23 -07:00
Brian Ford
75da6e4c4a
feat(router): export decorator version of RouteConfig
2015-05-04 15:44:16 -07:00
Brian Ford
28feac9411
refactor(router): rename "alias" to "as"
2015-05-03 20:37:00 -07:00
Brian Ford
9153331303
feat(router): route redirects
2015-05-03 20:37:00 -07:00
Brian Ford
9d5c33f9dd
feat(router): sibling outlets
2015-05-03 20:26:47 -07:00
Brian Ford
2713b7877b
fix(router): navigate on popstate event
2015-05-03 20:26:22 -07:00
Brian Ford
259f872cea
fix(router): throw if config does not contain required fields
2015-05-01 16:41:25 -07:00
Brian Ford
46ad3552c7
fix(router): infer top-level routing from app component
...
Closes #1600
2015-05-01 16:41:25 -07:00