refactor(router): use CamelCase aliases for routes
This commit is contained in:
@ -4,7 +4,7 @@
|
||||
<ol class="inbox-list">
|
||||
<li *ng-for="#item of items" class="inbox-item-record">
|
||||
<a id="item-{{ item.id }}"
|
||||
[router-link]="['/detailPage', {'id':item.id}]">
|
||||
[router-link]="['/DetailPage', {'id':item.id}]">
|
||||
{{ item.subject }}</a>
|
||||
</li>
|
||||
</ol>
|
||||
|
@ -1,5 +1,5 @@
|
||||
<inbox-side-menu class="inbox-aside">
|
||||
<a [router-link]="['/inbox']" class="link" [class.active]="inboxPageActive()">Inbox</a>
|
||||
<a [router-link]="['/drafts']" class="link" [class.active]="draftsPageActive()">Drafts</a>
|
||||
<a [router-link]="['/Inbox']" class="link" [class.active]="inboxPageActive()">Inbox</a>
|
||||
<a [router-link]="['/Drafts']" class="link" [class.active]="draftsPageActive()">Drafts</a>
|
||||
</inbox-side-menu>
|
||||
<router-outlet></router-outlet>
|
||||
|
@ -134,9 +134,9 @@ class DraftsCmp {
|
||||
@Component({selector: 'inbox-app', viewBindings: [DbService]})
|
||||
@View({templateUrl: "inbox-app.html", directives: [RouterOutlet, RouterLink]})
|
||||
@RouteConfig([
|
||||
new Route({path: '/', component: InboxCmp, as: 'inbox'}),
|
||||
new Route({path: '/drafts', component: DraftsCmp, as: 'drafts'}),
|
||||
new Route({path: '/detail/:id', component: InboxDetailCmp, as: 'detailPage'})
|
||||
new Route({path: '/', component: InboxCmp, as: 'Inbox'}),
|
||||
new Route({path: '/drafts', component: DraftsCmp, as: 'Drafts'}),
|
||||
new Route({path: '/detail/:id', component: InboxDetailCmp, as: 'DetailPage'})
|
||||
])
|
||||
export class InboxApp {
|
||||
router: Router;
|
||||
|
@ -13,6 +13,6 @@
|
||||
</p>
|
||||
|
||||
<span class="btn medium primary">
|
||||
<a [router-link]="record.draft ? ['../drafts'] : ['../inbox']" class="back-button">Back</a>
|
||||
<a [router-link]="record.draft ? ['../Drafts'] : ['../Inbox']" class="back-button">Back</a>
|
||||
</span>
|
||||
</div>
|
||||
|
@ -4,7 +4,7 @@
|
||||
<ol class="inbox-list">
|
||||
<li *ng-for="#item of items" class="inbox-item-record">
|
||||
<a id="item-{{ item.id }}"
|
||||
[router-link]="['/detailPage', {'id':item.id}]">{{ item.subject }}</a>
|
||||
[router-link]="['/DetailPage', {'id':item.id}]">{{ item.subject }}</a>
|
||||
</li>
|
||||
</ol>
|
||||
</div>
|
||||
|
Reference in New Issue
Block a user