R
R
Roman Kuzmenko2016-08-15 14:17:19
PHP
Roman Kuzmenko, 2016-08-15 14:17:19

How to filter elements in DOM in AngularJS?

Hello!
Introduction:
ionicframework 1.2.4, angularjs A
page with a dozen of these divs

<div class="box_gray_title">название_компании</div>

These divs are parsed and get to the page dynamically when it is opened
. Task:
Add to the page a certain drop-down list (select) with the content of all company names, by which it will be possible to select a certain company for display, and the rest were
hidden. Please help with an idea. I will be grateful,

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Alex, 2016-08-15
@streetflush

div through ng-repeat are displayed.
ng-repeat is filtered by select condition

Z
zdiii, 2016-08-15
@zdiii

https://codepen.io/PageOnline/pen/nCfAj
Only instead of input select

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question