Skip to content

Instantly share code, notes, and snippets.

View zshamrock's full-sized avatar
:octocat:
Working

Aliaksandr Kazlou zshamrock

:octocat:
Working
View GitHub Profile
@zshamrock
zshamrock / angular-bootstrap-templatePrefix.js
Last active December 11, 2015 21:29
AngularJS UI Bootstrap templatePrefix
angular.module("ui.bootstrap", ["ui.bootstrap.accordion","ui.bootstrap.alert","ui.bootstrap.carousel","ui.bootstrap.collapse","ui.bootstrap.dialog","ui.bootstrap.dropdownToggle","ui.bootstrap.modal","ui.bootstrap.pagination","ui.bootstrap.tabs","ui.bootstrap.tooltip","ui.bootstrap.transition","ui.bootstrap.config"]);
angular.module("ui.bootstrap.config", []).value("ui.bootstrap.config", {templatePrefix: "template"});
...
angular.module('ui.bootstrap.pagination', ["ui.bootstrap.config"])
.directive('pagination', ["ui.bootstrap.config", function(uiBootstrapConfig) {
return {