Skip to content

Instantly share code, notes, and snippets.

@stormbytes stormbytes/msg.factory.js
Last active Aug 29, 2015

Embed
What would you like to do?
'use strict';
function Msg($log){
var Msg = function(type, body){
this.type = type;
this.body = body;
}
$log.info("new Msg():", Msg);
return Msg;
}
angular
.module('app')
.factory('Msg', Msg);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.