M
M
Maxim Ivanov2016-07-15 16:55:53
Angular
Maxim Ivanov, 2016-07-15 16:55:53

Why can't angular process elements if id and class are present?

<div>
      <ul id="dropdown2" class="dropdown-content2">

        <li ng-repeat="task in tasks">
        	<a><b> {{ task.caption }} </b></a>
        </li>
        
      </ul>
    </div>

Error:
angular.min.js:117 TypeError: Cannot read property 'parent' of undefined Removing
id works but I need id

Answer the question

In order to leave comments, you need to log in

1 answer(s)
K
Kano, 2016-07-15
@splincodewd

In a "clean" application, everything works. So the problem is in the environment.
Have you tried checking the call stack.
Perhaps some code is being executed that crashes.
Perhaps you have a directive named dropdownContent2 bound by the class name.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question