Skip to content

Instantly share code, notes, and snippets.

View dkran's full-sized avatar

Daryl Kranec dkran

View GitHub Profile
@dkran
dkran / button.svc.js
Last active August 29, 2015 14:21
Button Bar with actionable ui router states
(function(){
'use strict'
angular.module('Whapi')
.service('buttonSvc',function($rootScope, toastr){
this.buttons = []
this.addButton = function(id, title, classes, href, action, sortOrder){
console.log(this.buttons)
var button = {};
var pushViable = true;
button.id = id