Skip to content

bendrucker/angular-assert-q-constructor

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

angular-assert-q-constructor Build Status

Make sure $q is a constructor (1.3+). Throw if it isn't.

Installing

$ npm install angular-assert-q-constructor

Usage

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'

About

Make sure $q is a constructor (1.3+). Throw if it isn't.

Resources

License

Stars

Watchers

Forks

Packages

No packages published