Quantcast
Channel: Ionic Forum - Latest topics
Viewing all articles
Browse latest Browse all 70612

Why is $urlRouterProvider.otherwise firing? links look valid

$
0
0

@Driesel wrote:

Hello,

i got some problems with my routing.
I use the backend social login app from ionic market and just want to add a site.
Sounds like the simplest task, but it always firing $urlRouterProvider.otherwise, so my link is invalid.

This is the code snippet of my app.js for routing:

        .state('tab.objects', {
            url: '/objects',
            views: {
                'tab-objects': {
                    templateUrl: 'templates/tab-objects.html',
                    controller: 'DashboardCtrl as vm'
                }
            }
        })
        .state('tab.objectdetails', {
            url: '/objects/:objectID',
            views: {
                'tab-objects': {
                    templateUrl: 'templates/tab-objectdetails.html',
                    controller: 'NothingCtrl'
                }
            }
        })

And this is the link on site #/tab/objects

< ion-item class="item-remove-animate item-avatar item-icon-right" type="item-text-wrap" ng-repeat="object in vm.data" href="#/tab/objects/{{object.id}}">

I really got no idea, why the link is invalid, because this was just a copy-paste from ionic starter app with chats. I tried several things, with and without ID in link, a separate controller or the same controller. Nothing with success.

He is a link to git for the whole project.
https://github.com/AndreDriesel/ionic-backand-app

Posts: 3

Participants: 2

Read full topic


Viewing all articles
Browse latest Browse all 70612

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>