jtrussell / angular-snap.js-bower Goto Github PK
View Code? Open in Web Editor NEWBower component repo for angular-snap.js
Home Page: https://github.com/jtrussell/angular-snap.js
License: MIT License
Bower component repo for angular-snap.js
Home Page: https://github.com/jtrussell/angular-snap.js
License: MIT License
wrong place, adding this issue to main project, this can be closed, sry...
I'm trying to get angular-snap.js working with brunch.io. I'm not sure where the problem lies, but I keep getting an error saying "Dependency "snapjs" is not present in the list of deps....Specify correct dependency in bower.json or contact package author.
I installed the node module bower-canary because it fixed some errors I was getting.
I have no problem installing bower modules, but I got this error when trying to install angular-snap:
bower install angular-snap
bower cached git://github.com/angular/bower-angular.git#1.0.7
bower validate 1.0.7 against git://github.com/angular/bower-angular.git#>= 1.0.6
bower cached git://github.com/components/jquery.git#2.0.3
bower validate 2.0.3 against git://github.com/components/jquery.git#*
bower cached git://github.com/angular/bower-angular.git#1.0.7
bower validate 1.0.7 against git://github.com/angular/bower-angular.git#*
bower error Cannot call method 'some' of undefined
Stack trace:
TypeError: Cannot call method 'some' of undefined
at Manager.<anonymous> (/usr/local/lib/node_modules/bower-canary/lib/core/Manager.js:271:30)
at Array.filter (native)
at Manager._onFetchSuccess (/usr/local/lib/node_modules/bower-canary/lib/core/Manager.js:270:39)
at /usr/local/lib/node_modules/bower-canary/node_modules/q/q.js:1126:30
at _fulfilled (/usr/local/lib/node_modules/bower-canary/node_modules/q/q.js:703:54)
at self.promiseDispatch.done (/usr/local/lib/node_modules/bower-canary/node_modules/q/q.js:732:30)
at Promise.promise.promiseDispatch (/usr/local/lib/node_modules/bower-canary/node_modules/q/q.js:669:13)
at /usr/local/lib/node_modules/bower-canary/node_modules/q/q.js:495:49
at flush (/usr/local/lib/node_modules/bower-canary/node_modules/q/q.js:106:17)
at process._tickCallback (node.js:415:13)
Console trace:
Trace
at StandardRenderer.error (/usr/local/lib/node_modules/bower-canary/lib/renderers/StandardRenderer.js:66:17)
at EventEmitter.updateNotifier.packageName (/usr/local/lib/node_modules/bower-canary/bin/bower:108:18)
at EventEmitter.emit (events.js:95:17)
at /usr/local/lib/node_modules/bower-canary/lib/commands/install.js:27:17
at _rejected (/usr/local/lib/node_modules/bower-canary/node_modules/q/q.js:713:24)
at /usr/local/lib/node_modules/bower-canary/node_modules/q/q.js:739:30
at Promise.when (/usr/local/lib/node_modules/bower-canary/node_modules/q/q.js:979:31)
at Promise.promise.promiseDispatch (/usr/local/lib/node_modules/bower-canary/node_modules/q/q.js:661:41)
at /usr/local/lib/node_modules/bower-canary/node_modules/q/q.js:543:44
at flush (/usr/local/lib/node_modules/bower-canary/node_modules/q/q.js:106:17)
I may be useful to have these styles for html
and body
to prevent iPhone rotation problems:
html, body {
/* These styles are in snap.css */
margin: 0;
padding: 0;
width: 100%;
height: 100%;
overflow: hidden;
/* Add this to prevent iPhone rotation */
position: absolute;
}
Hi,
In the bower.json, there is a main property
"main": [
"angular-snap.js",
"angular-snap.min.js",
"angular-snap.css",
"angular-snap.min.css"
]
It should be
"main": [
"angular-snap.js",
"angular-snap.css"
]
Tools like grunt bower-install expects bower.json to register one primary endpoint of each file, not the file + the minified version.
Best regards
I assume this is a mistake since the main repo bower.json file says it uses Angular 1.2, but this repo bower.json says Angular 1.0.
I don't really know how to provide any extra debug info, other than that when I use the class to designate a button to open the sidebar OR if I use snapper.open('left') on my non touch enabled device it doesn't open. I've put a breakpoint in when I use javascript and have used snapper.state() and both before and after the call to open it the state is closed.
My partner on the team hasn't had this issue, but his dev environment has a touch enabled screen. Maybe it's something that turns on when a user doesn't have any touch enabled screens?
If I can help any more, just let me know and I'll do whatever it needs.
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.