app.component.html
<div class="student-list" *ngFor="let student of students">
<p>{{student.name}}</p>
</div>
I want to test whether all students have name. But students
is a list which is getting set in app.component.ts.
Now how should I set the students
from protractor?
I have done following
element(by.binding('students')).sendKeys(['abc', 'xyz']);
But this is not working, it throws Failed: unknown error: angular is not defined
.
What is the correct way?