rprovost / ng-backstretch Goto Github PK
View Code? Open in Web Editor NEWA native Angular directive derived from the jQuery Backstretch plugin (http://srobbin.com/jquery-plugins/backstretch)
License: MIT License
A native Angular directive derived from the jQuery Backstretch plugin (http://srobbin.com/jquery-plugins/backstretch)
License: MIT License
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
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
Old repository is dead, it has a new life here: https://github.com/danielgindi/jquery-backstretch
All old issues and PRs have been resolved...
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?
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!
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?
I started here, but there is one thing, which is not solved - switching from image to image after the next one is loaded.
Auto-check coverage on each new pull request.
There should be a working example of ng-backstretch
somewhere to be referenced.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.