I am new in ionic and angular js some one can help . i spend two days to create link from one page to other but fail.
this is button which is on default tabs page like (dash). this is my controller :
.controller('DashCtrl', function($scope) {
$scope.create = function () {
alert("new post");
$scope.go('templates/newspost');
};
})
And this is my route
.state('newspost', {
url: '/newspost',
abstract: true,
templateUrl: 'templates/newspost.html'
})
i dont know where i make mistake.
$scope.go('/newpost')- you should go to theurlnot thetemplatethat is specified in yourstate. - mani