286a249a9a
feat(router): support deep-linking to siblings
...
Closes #2807
2015-07-07 14:54:59 -07:00
d828664d0c
fix(router): allow generating links with numeric params
2015-07-07 14:54:59 -07:00
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
2ed251a5db
docs(router): fix doc
2015-07-02 23:21:05 -07:00
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
1fb948461e
style: fix formatting for real
2015-06-30 20:38:08 -07:00
27c050be86
style: fix formatting
2015-06-30 19:55:44 -07:00
f66ce096d8
feat(router): support deep-linking to anywhere in the app
...
Closes #2642
2015-06-30 17:21:50 -07:00
44891996b5
fix(build): add missing return types now enforced by linter
2015-06-29 15:31:41 -07:00
27ad984626
refactor(Router): re-use resolved promise instances
2015-06-29 21:27:07 +02:00
1f04f70eda
refactor(Router): idiomatic TS
2015-06-29 21:27:07 +02:00
eea989bef8
fix(Router): mark Pipeline and RouteRegistry as Injectable
...
fix #2755
2015-06-29 21:27:07 +02:00
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
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
a67f2314f9
feat(router): add support for hash-based location
...
Closes #2555
2015-06-22 18:46:20 -07:00
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
2d2ae9b8d8
feat(router): enforce usage of ... syntax for parent to child component routes
2015-06-19 20:54:45 -04:00
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
dfd30910aa
feat: remove MapWrapper.contains().
2015-06-18 14:55:12 -07:00
be7ac9fd41
feat: remove MapWrapper.create()/get()/set().
...
Better dart2js code, better Angular code.
2015-06-18 14:55:12 -07:00
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
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
cdfb635737
refactor(facade): refactor type check function - is*()
2015-06-16 19:27:34 +02:00
cab1d0ef0f
feat(router): allow configuring app base href via token
2015-06-15 18:04:09 -07:00
73d152506b
fix(router): ensure that root URL redirect doesn't redirect non-root URLs
...
Closes #2221
2015-06-15 10:48:47 -07:00
3154cea0bf
docs(router): alias
should be as
2015-06-15 10:48:29 -07:00
5782f063f1
fix(router): rethrow exceptions
...
Closes #2391
2015-06-12 18:27:00 -07:00
f3d741854a
fix: add types for ts2dart's façade handling.
...
... in many, many places.
2015-06-12 15:41:08 -07:00
cdc7b03e67
fix(router): avoid two slash values between the baseHref and the path
2015-06-12 15:23:29 -07:00
e372cc779d
fix(router): do not prepend the root URL with a starting slash
2015-06-12 15:23:29 -07:00
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
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
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
ba07f39347
refactor(router): convert to typescript
...
Fixes #2001
2015-06-02 11:06:44 -07:00
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
2287938f5a
fix(router): event.defaultPrevented is not reliable (IE11)
2015-05-22 13:30:44 +02:00
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
791caf0037
fix(router): use appRootComponentToken to get root route configs
...
Closes #1947
2015-05-19 14:36:45 -07:00
83b97c485b
refactor(router): use DynamicComponentLoader instead of ViewContainer
2015-05-18 15:57:08 -07:00
5db89071d4
fix(router): improve route matching priorities
2015-05-18 15:57:08 -07:00
c29ab86d85
refactor(router): improve control flow of descendant route activation
2015-05-18 15:57:08 -07:00
0114cd97b6
refactor(RouteRegistry): optimize recognize()
2015-05-18 19:32:33 +02:00
fc13cdab3a
refactor(router): add types
2015-05-18 19:32:33 +02:00
390cfb793b
fix(router): generate links for router-link with baseHref
2015-05-13 12:22:45 -07:00
17392f663f
fix(router): sort possible routes by cost
2015-05-13 11:57:57 -07:00
a574154108
fix(router): add baseUrl to relative paths, but not absolute.
...
Closes #1783
2015-05-11 18:55:24 -07:00
ac80df0959
fix(router): reuse common parent components
2015-05-11 15:49:40 -07:00
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
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
4f3433b5bd
feat(view): allow to transplant a view into a ViewContainer at another place.
...
Closes #1492 .
2015-05-08 21:35:01 -07:00