Skip to content

Commit a41c065

Browse files
committed
README and CHANGELOG
1 parent 8361915 commit a41c065

File tree

2 files changed

+12
-3
lines changed

2 files changed

+12
-3
lines changed

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
# 1.5.0 (2015-06-15)
2+
3+
- Changed `$routeSegmentProvider.when` signature to `when(path, name, route)` which enables to extend the route information object with any custom properties, like `reloadOnSearch` or `caseInsensitiveMatch` ([425ac](https://github.com/artch/angular-route-segment/commit/1c21f9f40855cf9d8a74f6a760471b0eae7425ac)) thanks to [krmarien](https://github.com/krmarien).
4+
- Published to npm repository.
5+
16
# 1.4.0 (2015-03-13)
27

38
- Refactored render directive using modern `$transclude` cloning mechanism instead of manual cloning ([32dea](https://github.com/artch/angular-route-segment/commit/904b72477e322a7ab647d8b6c96165c7d4332dea)).

README.md

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -167,17 +167,21 @@ A hash object which can be used to set up the service on config stage:
167167
168168
When true, all attempts to call `within` method on non-existing segments will throw an error (you would usually want this behavior in production). When false, it will transparently create new empty segment (can be useful in isolated tests).
169169
170-
##### when(route, name)
170+
##### when(path, name, route)
171171
172-
The shorthand for $routeProvider.when() method with specified fully qualified route name.
172+
The shorthand for `$routeProvider.when()` method with specified fully qualified route name.
173173
174-
- *route*
174+
- *path*
175175
176176
Route URL, e.g. `/foo/bar`
177177
178178
- *name*
179179
180180
Fully qualified route name, e.g. `foo.bar`
181+
182+
- *route*
183+
184+
Mapping information object to be assigned to `$route.current` on route match.
181185
182186
##### segment(name, params)
183187

0 commit comments

Comments
 (0)