Link to home
Start Free TrialLog in
Avatar of cofactor
cofactor

asked on

angular 2 code

What is the angular 2 version of this jquery code ?

$(this).parents().find('ul#breadcrumb').append('<li>Create </li>'); 

Open in new window

Avatar of M. Tariq
M. Tariq
Flag of Oman image

Hey man,
Angular doesn't have the selectors concept, however you can still use jquery with it though.
if you want to append new list-item to a list, just bind the list to an array and add your new element to that array and the list will updated accordingly.
ASKER CERTIFIED SOLUTION
Avatar of Julian Hansen
Julian Hansen
Flag of South Africa image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial