I am a newbie on Angular2, I have to get the next element value/text in Angular2 but I am not able to do so. It is very easy in Jquery but I didnt find any way to achieve the same in Angular2. Please help.
Here is my code:
<div id="div1">Here is Div-1 content</div>
<div id="div2">Here is Div-2 content</div>
In jquery it is very easy to do like:
$('#div1').next().text();
How the same can be done in Angular 2