You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Mar 17, 2025. It is now read-only.
Some upstanding citizen who may or may not be me shipped CommonJS support for Angular in 1.3.14 and 1.4 beta. So that means you can require('angular'), but also this:
That's because require('angular-messages') === 'ngMessages'. Requiring the code registers the module, but the actual return value is the string name of the module.
Here's how to do this without actually using browserify to build AngularFire:
Some upstanding citizen who may or may not be me shipped CommonJS support for Angular in 1.3.14 and 1.4 beta. So that means you can
require('angular')
, but also this:That's because
require('angular-messages') === 'ngMessages'
. Requiring the code registers the module, but the actual return value is the string name of the module.Here's how to do this without actually using browserify to build AngularFire:
main
inpackage.json
toindex.js
index.js
at the project rootindex.js
with the following:This is exactly how Angular does it for all its various
angular-*
repos.Full discussion where this was discussed and my way was blessed in angular/angular.js#10732
The text was updated successfully, but these errors were encountered: