angularjs - How to use materialize-cssc with ts in angular4 -
i'm new npm stuff, i'm working on angular project using typescript. question how use materialize-css package http://materializecss.com/? installed locally npm install materialize-css
don't know how proceed. tried use simple <select>
tag , initialized $('select').material_select()
keep on getting error error ts2339: property 'material_select' not exist on type 'jquery'
. installed jquery using npm. please help. regards.
add materialize (js,css, jquery) in index.html file , in appcomponent
file add this:
declare let $ : any; @component({ //... }) export class appcomponent{ //... };
Comments
Post a Comment