<ul>
    <li ng-repeat="inv in inventories track by $index">
        <span>
            <span ng-click="viewInventory(inv)">{{inv.name}}</span>
        </span>
    </li>
</ul>
<button ng-href="/new">New Inventory</button>

<ul>
    <li ng-repeat="inv in inventories track by $index">
        <span>
            <span ng-href="edit/{{inv.id}}">{{inv.name}}</span>
        </span>
    </li>
</ul>
<button ng-href="new">New Inventory</button>

Change ng-click for inventory to ng-href with id param
Change ng-click for inventory to ng-href with id param
