Skip to content

Instantly share code, notes, and snippets.

@voidove
voidove / dabblet.css
Last active August 29, 2015 14:13 — forked from anonymous/dabblet.css
div
/**
* div
*/
.box-set {
background: #e8eae9;
color:#fff;
}
.box {
background: #8ec63f;
@voidove
voidove / gist:93733a8a1a2b0875fddbd9264919df16
Created February 15, 2017 10:51 — forked from Mithrandir0x/gist:3639232
Difference between Service, Factory and Provider in AngularJS
// Source: https://groups.google.com/forum/#!topic/angular/hVrkvaHGOfc
// jsFiddle: http://jsfiddle.net/pkozlowski_opensource/PxdSP/14/
// author: Pawel Kozlowski
var myApp = angular.module('myApp', []);
//service style, probably the simplest one
myApp.service('helloWorldFromService', function() {
this.sayHello = function() {
return "Hello, World!"