Coder Social home page Coder Social logo

angular-owl-carousel's People

Contributors

fatuk avatar jonahbron avatar kobaska avatar rickerd avatar traksewt avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

angular-owl-carousel's Issues

Directions won't work with html

Fix

  1. inject $sce into controller
  2. iterate items applying $sce.trustAsHtml to each string
  3. use this syntax in view:
<div ng-controller="MyController">
    <div owl-carousel="items">
        <div class="item" ng-bind-html="item"></div>
    </div>
</div>

Working Example?

Could you put together a working example of this code in the project? Or possibly a link to it working on Plunkr.co?

Add callbacks

Hi, I need add Custom Events, how it could be implemented? Thanks.

Missing automatic bower includes - grunt serve

Hi,

I found that running grunt serve didn't include all the js and css files necessary.

So I created a bower.json file.

As follows...

{ "name": "owlcarousel", "main": ["owl-carousel/owl.carousel.js", "owl-carousel/owl.carousel.css", "owl-carousel/owl.theme.css"], "license": "MIT", "ignore": [ "package.json" ], "keywords": [ "owlcarousel", "javascript", "browser", "library" ] }

templating items?

how do i template the items? there are no clear directions? am i supposed to pass html as an array for items? this sucks balls.

owlCarousel.destroy() crashes

I am getting this when adding an item:

TypeError: Cannot read property 'dom' of undefined
at e.destroy (owl.carousel.min.js:formatted:599)
at e.destroy (owl.carousel.min.js:formatted:309)
at angular-owl-carousel.js:23
at Object.$watchCollectionAction as fn
at Scope.$get.Scope.$digest (angular.js:14308)
at Scope.$get.Scope.$apply (angular.js:14571)
at HTMLButtonElement. (angular.js:21571)
at HTMLButtonElement.jQuery.event.dispatch (jquery.js:4676)
at HTMLButtonElement.jQuery.event.add.elemData.handle (jquery.js:4360)

Incorrect bower version

The version in your bower.json is out of sync with your most recently tagged release, causing v0.1.0 to be installed with a bower install of this package.

Doesn't work anymore

Downloaded and tested software as is, however throws an error.

angular.js:14110 SyntaxError: [verstraetenIo Error] Unexpected token v in JSON at position 0 at JSON.parse (<anonymous>) at Object.link (http://10.10.10.10:3000/bower_components/angular-owl-carousel/src/angular-owl-carousel.js:18:36) at http://10.10.10.10:3000/bower_components/angular/angular.js:1259:18 at invokeLinkFn (http://10.10.10.10:3000/bower_components/angular/angular.js:10095:9) at nodeLinkFn (http://10.10.10.10:3000/bower_components/angular/angular.js:9492:11) at compositeLinkFn (http://10.10.10.10:3000/bower_components/angular/angular.js:8757:13) at compositeLinkFn (http://10.10.10.10:3000/bower_components/angular/angular.js:8760:13) at compositeLinkFn (http://10.10.10.10:3000/bower_components/angular/angular.js:8760:13) at compositeLinkFn (http://10.10.10.10:3000/bower_components/angular/angular.js:8760:13) at nodeLinkFn (http://10.10.10.10:3000/bower_components/angular/angular.js:9486:11) <div owl-carousel="vm.owl.items" owl-options="vm.owl.options">(anonymous function) @ angular.js:14110(anonymous function) @ angular.js:10633(anonymous function) @ exception-handler.provider.js:55invokeLinkFn @ angular.js:10097nodeLinkFn @ angular.js:9492compositeLinkFn @ angular.js:8757compositeLinkFn @ angular.js:8760compositeLinkFn @ angular.js:8760compositeLinkFn @ angular.js:8760nodeLinkFn @ angular.js:9486compositeLinkFn @ angular.js:8757publicLinkFn @ angular.js:8637(anonymous function) @ angular-ui-router.js:4089(anonymous function) @ angular.js:1259invokeLinkFn @ angular.js:10095nodeLinkFn @ angular.js:9492compositeLinkFn @ angular.js:8757publicLinkFn @ angular.js:8637lazyCompilation @ angular.js:8994updateView @ angular-ui-router.js:4021(anonymous function) @ angular-ui-router.js:3959$broadcast @ angular.js:18239$state.transition.resolved.then.$state.transition @ angular-ui-router.js:3352processQueue @ angular.js:16606(anonymous function) @ angular.js:16622$eval @ angular.js:17913$digest @ angular.js:17727$apply @ angular.js:18021done @ angular.js:12002completeRequest @ angular.js:12211requestLoaded @ angular.js:12139 angular.js:14110 Error: [verstraetenIo Error] Unexpected token v in JSON at position 0 Object {exception: SyntaxError: [verstraetenIo Error] Unexpected token v in JSON at position 0 at JSON.parse (<anon…, cause: "<div owl-carousel="vm.owl.items" owl-options="vm.owl.options">"}

loop option not working

When I set the loop option to true, the html ends up looking like this:

<div class="item {{ item }} ng-scope">
...
</div>

where {{ item }} is not replaced

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.