Code Monkey home page Code Monkey logo

ng-backstretch's People

Stargazers

 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

ng-backstretch's Issues

Directive not working inside ng-view using angular route

Hi,

There seems to be an issue when using this directive within a partial html file using angular route.

I have routes set up and they get called when links are clicked. The backstretch directive is on divs within these files but the images dont appear.

Is there a scoping issue?

Regards
Tom

Wrong file referenced in package.json

The field "main" in package.json is referenced to index.js this file does not exist.

"main": "index.js",

When you try to use this module with Webpack, or other systems with use the require function to load the module, it is not able to find it, due to it is looking for the index.js

Backstretch on login page

Hi there,

I'm using this module in our application which has a login page to enter. I only want to show backstretch on the login page, so between a couple of controllers and a service, it works to a point. Only problem is, it brakes when you refresh the page, throws the following error:
TypeError: d[0].offsetParent is null
...,height:"auto"},f=d[0].offsetWidth,g=f,h=d[0].offsetHeight>0?d[0].offsetHeight:d...
Points to h=d[0]

Any reason or background on this?

Is there a possibility to fit image?

Hi,
Thanks for the directive. I wanted to know if there was an attribute option to decide to "fit" vs "fill" the div with the image.
Thank you!

Image Sizing when using image array

The images are sized correctly and they respond to the changes in viewport correctly when using a single image declared in the html. However, when using the image array they appear fixed width and height at 100%. As you change the viewport size the images are stretched and compressed instead of responding as they should and do with a single image. Is there an attribute that can be passed?

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.