Skip to content

Instantly share code, notes, and snippets.

View dolftax's full-sized avatar

Jai Pradeesh dolftax

View GitHub Profile
@sebz
sebz / grunt-hugo-lunrjs.md
Last active June 28, 2024 18:41
hugo + gruntjs + lunrjs = <3 search
@skarllot
skarllot / nglazy.js
Last active November 26, 2021 00:00
AngularJS factory to allow lazy loading of controllers and services.
// Deps: lodash (or Underscore.js)
!function(global, appname) {
'use strict';
var ng = angular.module(appname);
ng.config([ '$controllerProvider', '$compileProvider', '$filterProvider', '$provide', function($controllerProvider, $compileProvider, $filterProvider, $provide) {
// Register 'ngLazy' globally to allow registering of components after bootstrap.
// Eg:
// ngLazy.controller('myController', function($scope) {
// ...