Vendor code is
npm. You can install any library you wish and then import it in any component, service, model or utility. The dependencies are defined and maintained in
Note: remember that every vendor library you import will increase the size of your codebase and make it slower to load for the end-user.
Note: remember to remove any libraries you no longer use from your
Note: when installing, remember to
--save-dev any dependencies you only need for tooling and not for client-side application code.
Dependencies must be installed and stored in
package.json before they can be used in the codebase.
npm install lodash --save
After this, you can use what you installed in your application code.
import _ from 'lodash'; var foo = _.trim(' Foo ');