Skip to content

Instantly share code, notes, and snippets.

View blndev's full-sized avatar

Daniel Bedarf blndev

View GitHub Profile
@Mithrandir0x
Mithrandir0x / gist:3639232
Created September 5, 2012 16:15
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!"
@blndev
blndev / .gitignore
Created July 6, 2012 08:42
My Personal GitIgnore - File for VisualStudio, C#, Silverlight, Metro, C++ ATL
#OS junk files
[Tt]humbs.db
*.DS_Store
#Visual Studio files
*.[Oo]bj
*.user
*.aps
*.vspscc
*.vssscc