This looks like an AngularJS question.
On Saturday, December 3, 2016 at 10:17:32 PM UTC-5, Marcos Santana wrote:
>
> *Link Menu*
>
> <a ui-sref="articles.list-nav({category: category.name})">
> {{ category.name }}</a>
>
> *Route Client:*
>
> .state('articles.list-nav', {
> url: '/:category/articles',
> templateUrl:
> 'modules/articles/views/list-articles-scategory.client.view.html',
> controller: 'ArticlesController'
> })
>
> *List Article Category:*
>
> <a class="md-12-line" ng-repeat="article in getArticles(category.id) ">
> *Controller Client:*
>
> $scope.getAticles = function(category){
> var result = [];
> for(var i = 0 ; i < $scope.articles.length ; i++){
> if(category === $scope.articless[i].category){
> result.push($scope.articles[i]);
> }
> }
> console.log(category);
> return result;
> };
>
> *I tried the other way:*
>
> *Controller Client:*
>
> $scope.subCat = $stateParams.subcategoria;
>
> *List Article Category:*
>
> <a class="md-12-line" ng-repeat="article in article | Filter: {(category:
> category.id)} ">
>
> But not working anyway, can I help me?
>
>
--
Job board: http://jobs.nodejs.org/
New group rules:
https://gist.github.com/othiym23/9886289#file-moderation-policy-md
Old group rules:
https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
---
You received this message because you are subscribed to the Google Groups
"nodejs" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/nodejs/6fb00d59-05a6-413a-af30-2fb9e689a319%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.