1.0.1 • Published 10 years ago
angular-assert-q-constructor v1.0.1
angular-assert-q-constructor 
Make sure $q is a constructor (1.3+). Throw if it isn't.
Installing
$ npm install angular-assert-q-constructorUsage
angular
.module('myApp', [])
.run(function (assertQConstructor) {
assertQConstructor()
})API
assertQConstructor(message) -> undefined
If $q is a function, this is a noop. Otherwise (i.e. Angular <1.3) it will throw the message.
message
Type: string
Default: '$q is not a function'