Click to show new view


#1

Working on a directory tabbed app that needs a new item view. Have set up the state via app.js however I can’t link the button to show the new-item view.

Current state nav is:
.state('new-item', { url: '/new-item', templateUrl: 'templates/tab-new-item.html', controller: 'NewItemCtrl' })

Button to show via the directory list tab is:

<a class="button icon-right ion-plus-round" href="#/new-item"></a>

Nothing gets outputted via console.

Functionality needs to be: when new item is clicked slide up the tab-new-item.html pane

Thanks