Bring a trendy Angular.js friction menu to your page!
###friction-menu v1.0.1
Just what the doctor ordered, a friction menu for Angular. You heard me.
friction-menu-opts or frictionMenuOpts has to exists in the scope somewhere, either as an attribute or in a controller.
use like:
<div friction-menu friction-menu-opts={"watch" : ["/posts/","/coolPlace/"], "showWhenScrolledTo" : "300px"}></div>
- Import frictionMenu into your main app module
- Create the friction-menu-opts or frictionMenuOpts object (shown above)
- Throw some options in there (shown below)
- Cry a little, and marvel
Options: ARRAY paths to match when to show the menu. i,e watch : ["/posts/"] BOOLEAN Whether or no to show of collapse the friction menu on load BOOL OR STRING if you put a pixel amount (i,e 300px) the menu wont appear until you scroll to that point, false for disabled
TODO:
- Add more options
- Remove jQuery
- Put some candy out to trap the neighbor's dog