저는 Angular2에서 초보자입니다. Angular2에서 다음 요소 값/텍스트를 가져와야하지만 그렇게 할 수는 없습니다. 그것은 Jquery에서 매우 쉽지만 Angular2에서 같은 결과를 얻기위한 방법을 찾지 못했습니다. 도와주세요. JQuery와에각도 2의 다음 요소/형제를 얻는 방법
<div id="div1">Here is Div-1 content</div>
<div id="div2">Here is Div-2 content</div>
는이 같은 아주 쉽게 할 수 있습니다 : : 여기
내 코드입니다 동일 각도 2
[DOM 조작은 각도 2에 속합니다.] (https://stackoverflow.com/questions/37376442/where-does-dom-manipulation-belong-in-angular-2) – asmmahmud
아니요 , 그렇지 않습니다. 제 질문은 뭔가 다른 것입니다. – Ankit
https://stackoverflow.com/questions/32693061/angular-2-typescript-get-hold-of-an-element-in-the-template?noredirect=1&lq=1와 비슷합니다. – asmmahmud