ngLinkDirective

Lets you link to different parts of the app, and automatically generates hrefs.

Use

The directive uses a simple syntax: router-link="componentName({ param: paramValue })"

Example

angular.module('myApp', ['ngFuturisticRouter'])
.controller('AppController', ['$router', function($router) {
  $router.config({ path: '/user/:id' component: 'user' });
  this.user = { name: 'Brian', id: 123 };
});
<div ng-controller="AppController as app">
  <a router-link="user({id: app.user.id})">{{app.user.name}}</a>
</div>