AngularFire - How to define item ID for child template with ng-repeat?

前端 未结 2 1551
余生分开走
余生分开走 2021-01-23 23:09

Maybe my issue seems easy to resolve, but I\'ve this problem since a lot of hours : When I\'m in my dashboard, all data of my Firebase database are visible (With Ng-repeat). But

2条回答
  •  半阙折子戏
    2021-01-23 23:51

    you can use route provider to do that. I used that for my application and it works great.

    myApp.config( ['$routeProvider', function($routeProvider){
        $routeProvider.
            when('tabpost', {
                templateUrl: 'tabpost/id', 
                controller: 'PostCtrl' 
            });
    }]);
    

提交回复
热议问题