Skip to content

Instantly share code, notes, and snippets.

@Turbo87
Turbo87 / app.js
Created Feb 15, 2015
webpack + font-awesome test
View app.js
require('font-awesome/css/font-awesome.css');
document.body.innerHTML = '<i class="fa fa-fw fa-question"></i>';
@mlynch
mlynch / autofocus.js
Last active May 6, 2020
AngularJS Autofocus directive
View autofocus.js
/**
* the HTML5 autofocus property can be finicky when it comes to dynamically loaded
* templates and such with AngularJS. Use this simple directive to
* tame this beast once and for all.
*
* Usage:
* <input type="text" autofocus>
*
* License: MIT
*/
You can’t perform that action at this time.