i've build starter app using angular 2 starter angularclass. in console (both chrome , firebug) can type:
a = $('body')
and a
of type object , looks dom element. can't run
a.find('h1')
where $
comes from?
$
selector function on browser api. can console same in chrome:
$ //type $ in console log function$(selector, [startnode]) { [command line api] } //returns function
checking if exists on window :
window.$ function $(selector, [startnode]) { [command line api] }
it returns macthed element dom. reason why a.find('h1')
not working because find
not function on $
selector function. has nothing webpack or angular2.