It would be easy if you use something like http://plnkr.co/

2015-03-25 7:09 GMT-04:00 fabio zacarias <[email protected]>:

>
> Grupos do Google <https://groups.google.com/forum/#!overview>
> POSTAR RESPOSTA
> 5 de 52 (47)
> Meus grupos <https://groups.google.com/forum/#!myforums>
> Página inicial <https://groups.google.com/forum/#!overview>
> Com estrela <https://groups.google.com/forum/#!starred>
> Favoritos
> Clique no ícone de estrela de um grupo para adicioná-lo aos favoritos
> Visualizados recentemente
> AngularJS BR <https://groups.google.com/forum/#!forum/angularjs-br>
> AngularJS <https://groups.google.com/forum/#!forum/angular>
> AngularJS-Brazil
> <https://groups.google.com/forum/#!forum/angularjs-brazil>
> Pesquisas recentes
> Postado recentemente em
> AngularJS-Brazil
> <https://groups.google.com/forum/#!forum/angularjs-brazil>
> Privacidade <http://www.google.com/intl/pt-BR/policies/privacy/> - Termos
> de Serviço <http://www.google.com/intl/pt-BR/policies/terms/>
> AngularJS-Brazil
> <https://groups.google.com/forum/#!forum/angularjs-brazil> ›
> Problema em ler elemento dentro de um ng-repeat
> 1 postagem de 1 autor
>
> eu (fabio zacarias alterar)
> 24 de mar (21 horas atrás)
> Traduzir mensagem para português
>
> I am using this code to get an element within the ng-reapeat
>
> for later use in a filter. But is not Working
>
>
>
> HTML
>
> <ul id="accordion" class="accordion" >
>
>     <li style="border-bottom: 1px solid #738BC0;">
>         <div class="link"><i class="fa fa-folder-open"></i>Unidades<i
>                 class="fa fa-chevron-down"></i></div>
>         <ul class="submenu">
>             <li class="sidebar-list" ng-repeat="unidade in  unidades | 
> orderBy: 'opm'" >
>                 <a class="link">{{unidade.*serv*}} </a>
>             </li>
>         </ul>
>     </li>
>
>     <li style="border-bottom: 1px solid #738BC0;">
>         <div class="link" ><i class="fa fa-folder-open"></i>Situação<i 
> class="fa fa-chevron-down"></i></div>
>         <ul class="submenu" >
>             <div class="sidebar-list" ng-repeat="tipofiltro in tipofiltros" 
> id="filtroqlSit" ng-click="filtroQList()" >
>                 <a class="link">{{tipofiltro.id}}</a>
>             </div>
>         </ul>
>     </li>
>
> </ul>
>
>
>
> __________________________________________________________________________
>
>
>
> angular.module('RH')
>     .controller('quickListUnidadesCtrl', ['$scope', '$rootScope', 
> quickListUnidadesCtrl]);
>
> function quickListUnidadesCtrl($scope) {
>     $scope.unidades = [
>         {
>             "serv": "centro"
>         },
>         {
>             "serv": "ZL"
>         },
>         {
>             "serv": "ZN"
>         },
>         {
>             "serv": "ZS"
>         }
>     ];
>
>     $scope.tipofiltros = [
>         {
>
>             "id": 0
>         },
>         {
>             "id": 1
>         },
>         {
>
>             "id": 2
>         },
>         {
>
>             "id": 3
>         }
>     ];
>
>
> $scope.filtroQList = function () {
>
>         var valor = document.getElementById('filtroqlSit');
>         alert(valor.value);
>             }
>
> }
>
>
>
>
>
> Clique aqui para Responder
>
> --
> You received this message because you are subscribed to the Google Groups
> "AngularJS" 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].
> Visit this group at http://groups.google.com/group/angular.
> For more options, visit https://groups.google.com/d/optout.
>



-- 
*Rishi Tandon*
Pearson Learning Technology Group

Mobile: (310) 926-9032

Pearson
Always Learning
Learn more at www.pearson.com

-- 
You received this message because you are subscribed to the Google Groups 
"AngularJS" 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].
Visit this group at http://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.

Reply via email to