Logo
Explore Help
Sign In
iSharkFly-Docs/angular-docs-cn
1
0
Fork 0
You've already forked angular-docs-cn
Code Issues Pull Requests Actions Packages Projects Releases Wiki Activity
angular-docs-cn/modules/angular2/src/router/route_definition.dart

8 lines
173 B
Dart
Raw Normal View History

feat(router): add interfaces for route definitions in RouteConfig Closes #2261
2015-07-13 16:12:48 -07:00
library angular2.src.router.route_definition;
abstract class RouteDefinition {
final String path;
refactor(router): rename "as" to "name" in RouteConfig BREAKING CHANGE: This is a rename to make routing concepts easier to understand. Before: ``` @RouteConfig([ { path: '/', component: MyCmp, as: 'Home' } ]) ``` After: ``` @RouteConfig([ { path: '/', component: MyCmp, name: 'Home' } ]) ``` Closes #4622 Closes #4896
2015-10-25 15:00:27 +05:30
final String name;
const RouteDefinition({this.path, this.name});
feat(router): add interfaces for route definitions in RouteConfig Closes #2261
2015-07-13 16:12:48 -07:00
}
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.23.8 Page: 78ms Template: 1ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API