Currently, to provide services in Angular, you include them in an @NgModule
:
@Injectable()
# ================================================== | |
# | |
# NGINX Proxy SSL Configuration for Deployd | |
# | |
# Notes: Be sure to change the following | |
# 1. example.com | |
# 2. /path/to/ssl/cert/server.crt | |
# 3. /path/to/ssl/key/server.key | |
# 4. Default Deployd port is used (2403) | |
# |
# fetching a single pull request from github | |
# put it into ~/.profile or ~/.bashrc | |
function fetch_pr() { | |
PR=$1 | |
BRANCH=$2 | |
if [ -z $PR ]; then | |
echo "Missing pull request number" | |
return 1 | |
fi |
// 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!" |
define(['require', 'exports'], function(require, exports) { | |
exports.GATrackingHelper = function(settings) { | |
// MEMBERS & DEFAULTS | |
var urchinId = settings.gaqId || false, | |
devId = settings.devId || 'UA-3172639-5', | |
page = settings.page || null, | |
trackingLabel = settings.label || false, | |
domainName = settings.domainName || '.defencejobs.gov.au', |