javascript - angular-slick attributes with capital case -
i making carousel angular-slick (https://github.com/vasyabigi/angular-slick).
some of slick settings carousel not seem work when used attributes of slick-directive. these attributes have 1 or more capital case letters.
i had change these attributes lower case letters in slick.js , in angular model slick.js. instance custom button next , previous had change prevarrow , nextarrow prevarrow , nextarrow can use in following way:
<slick prevarrow='.btn-prev' nextarrow='.btn-next' arrows="true" data="windows"> <div ng-repeat="window in windows" class="slick-slide"> <a><img ng-src={{window.imageurls[0]}}></a> </div> </slick> <div class="slider-controls"> <button class="btn-next">customnext</button> <button class="btn-prev">customprev</button> </div>
changing code in libraries not seem right way working. there obvious mistake made or limitation slick-settings 1 can use via slick element ?
when see directives capital
case nextarrow
, must use them as
next-arrow
no need change library code. angular follows same convention css. when there capital cased directive prevarrow
, in html if want reference it, use prev-arrow
.
best example is:
ng-app
in html might have used ng-app
if check in angular code, ngapp
Comments
Post a Comment