diff options
author | Bernhard Posselt <dev@bernhard-posselt.com> | 2015-02-28 13:25:05 +0100 |
---|---|---|
committer | Bernhard Posselt <dev@bernhard-posselt.com> | 2015-02-28 13:25:05 +0100 |
commit | 7986ea3afcc0c57ecad5a25a92a5bbee8db81d08 (patch) | |
tree | 5ee5e3d3c6e2db094961917bbd48c65d80221038 /js/vendor/angular-mocks/README.md | |
parent | ea4ecf501fc83134db2201477b4cdb1806d5312c (diff) |
update npm modules and bower modules
Diffstat (limited to 'js/vendor/angular-mocks/README.md')
-rw-r--r-- | js/vendor/angular-mocks/README.md | 16 |
1 files changed, 11 insertions, 5 deletions
diff --git a/js/vendor/angular-mocks/README.md b/js/vendor/angular-mocks/README.md index 1604ef880..440cce9b7 100644 --- a/js/vendor/angular-mocks/README.md +++ b/js/vendor/angular-mocks/README.md @@ -14,10 +14,16 @@ You can install this package either with `npm` or with `bower`. npm install angular-mocks ``` -The mocks are then available at `node_modules/angular-mocks/angular-mocks.js`. - -Note that this package is not in CommonJS format, so doing `require('angular-mocks')` will -return `undefined`. +You can `require` ngMock modules: + +```js +var angular = require('angular'); +angular.module('myMod', [ + require('angular-animate'), + require('angular-mocks/ngMock') + require('angular-mocks/ngAnimateMock') +]); +``` ### bower @@ -36,7 +42,7 @@ Documentation is available on the The MIT License -Copyright (c) 2010-2012 Google, Inc. http://angularjs.org +Copyright (c) 2010-2015 Google, Inc. http://angularjs.org Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal |