{"action":"opened","issue":{"url":"https://api.github.com/repos/angular/angular/issues/6430","labels_url":"https://api.github.com/repos/angular/angular/issues/6430/labels{/name}","comments_url":"https://api.github.com/repos/angular/angular/issues/6430/comments","events_url":"https://api.github.com/repos/angular/angular/issues/6430/events","html_url":"https://github.com/angular/angular/issues/6430","id":126209669,"number":6430,"title":"router.min.js doesn't generate link with [routerLink] directive (beta.1)","user":{"login":"vjekoart","id":7541149,"avatar_url":"https://avatars.githubusercontent.com/u/7541149?v=3","gravatar_id":"","url":"https://api.github.com/users/vjekoart","html_url":"https://github.com/vjekoart","followers_url":"https://api.github.com/users/vjekoart/followers","following_url":"https://api.github.com/users/vjekoart/following{/other_user}","gists_url":"https://api.github.com/users/vjekoart/gists{/gist_id}","starred_url":"https://api.github.com/users/vjekoart/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vjekoart/subscriptions","organizations_url":"https://api.github.com/users/vjekoart/orgs","repos_url":"https://api.github.com/users/vjekoart/repos","events_url":"https://api.github.com/users/vjekoart/events{/privacy}","received_events_url":"https://api.github.com/users/vjekoart/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-01-12T15:52:54Z","updated_at":"2016-01-12T15:52:54Z","closed_at":null,"body":"When creating simple route config inside component with and using [routeLink] directives inside template, elements won't get href attribute. When user clicks on element (that has routeLink directive, exception is thrown in console). Application has been tested in latest Firefox and Chrome versions.\r\n\r\n*Code is written based on this example: https://angular.io/resources/live-examples/router/ts/plnkr.html\r\nDeveloper guide: https://angular.io/docs/ts/latest/guide/router.html*\r\n\r\n**Component file (.ts):**\r\n```\r\n@RouteConfig([\r\n    {\r\n        path: '/',\r\n        name: 'Dashboard',\r\n        component: DashboardComponent,\r\n        useAsDefault: true\r\n    }, {\r\n        path: '/about',\r\n        name: 'About',\r\n        component: AboutComponent\r\n    }\r\n])\r\n```\r\n\r\n**Template file:**\r\n```\r\n<nav>\r\n    <a [routerLink]=\"['Dashboard']\">Dashboard</a>\r\n    <a [routerLink]=\"['About']\">About</a>\r\n</nav>\r\n```\r\n**Console output (only one part of it because all dependencies are concatenated inside one file):**\r\n```\r\nError: EXCEPTION: Error during evaluation of \"click\"\r\nORIGINAL EXCEPTION: TypeError: this.directive_1_0.onClick is not a function\r\nORIGINAL STACKTRACE:\r\nanonymous/ChangeDetector_RootComponent_2.prototype.handleEventInternal@viewFactory_RootComponent:365:22\r\nm</e.prototype.handleEvent...\r\n\r\nERROR CONTEXT:\r\n[object Object]\r\n```\r\n\r\nWhen I changed from `router.min.js` to `router.dev.js` everything is working as expected.\r\n\r\n*If needed I can include dependencies one by one for more detailed console output.*"}}