fooTable not working properly in AngularJS


I am having issue with fooTable in AngularJS ,here is what i am doing:

<table class="table m-b-none" ui-jq="footable" data-filter="#filter" data-page-size="5">
            <th data-toggle="true">Name</th>
            <th data-hide="phone">Logo</th>
            <th data-hide="phone,tablet">Website</th>
            <th data-hide="phone,tablet" data-name="Friendly URL">URL</th>
            <th data-hide="all">External Parameter 1</th>
            <th data-hide="all">External Parameter 2</th>
            <th data-hide="all">Meta Keywords</th>
            <th data-hide="all">Meta Description</th>
            <th data-hide="all">Period</th>
        <tr ng-repeat="store in stores">
            <td><img ng-src="{{store.logo}}" /></td>
            <td data-value="1">
                <!--Edit Button-->
                <a type="button" class="btn btn-xs btn-default" ui-sref="{editId:})">
                    <i class="fa fa-pencil"></i>
                <!--Delete Button-->
                <a type="button" class="btn btn-xs btn-default" ng-click="deleteStore(">
                    <i class="fa fa-trash"></i>
    <tfoot class="hide-if-no-paging">
            <td colspan="10" class="text-center">
                <ul class="pagination"></ul>

When i refresh the page by pressing F5 the output is as it should be:

enter image description here

then after i click somewhere else e.g. Add Store and come back to this page, now the picture changes:

enter image description here

the + icon gone, and all <td> are showing, they are not getting hide, as it should be.

Here is my controller:

app.controller('storesCtrl', ['$scope', '$http', function($scope, $http) {
    $scope.stores = {};
        $scope.stores = data;

I also tried using $('.table').trigger('footable_redraw'); but no luck.

Please help, thanks

Problem courtesy of: Punit


I found the solution:

    $scope.stores = data;
    }, 100);
Solution courtesy of: Punit


There is currently no discussion for this recipe.

This recipe can be found in it's original form on Stack Over Flow.