- Extensions consist of
3rd-partyorcustomcode that is integrated into the app. - As the name implies, extensions
extendthe capabilities of your app. - There optional extensions that you can install during the install process.
- Rectangular ships with 1 extension installed by default:
- The
Dataextension =ImmutableJS.
- The
-
Typically, adding a new
extensionis as easy as putting services/directives in the extensions folder. -
A 3rd-party library can be add in the following way
extension:const exampleVendorService = function exampleVendorService($window) { return $window.exampleLibrary; }; angular.module("example.vendor.service", []).factory("serviceName$", exampleVendorService); -
The extension can then be aliased as follows:
angular.module("example.service", ["example.vendor.service"]);
- Learn more about
angular-materialhere.
- Service is called
ui.bottomSheet.serviceand is injected viabottomSheet$. - Service is called
ui.colors.serviceand is injected viacolors$. - Service is called
ui.dialog.serviceand is injected viadialog$. - Service is called
ui.icon.serviceand is injected viaicon$. - Service is called
ui.inkRipple.serviceand is injected viainkRipple$. - Service is called
ui.media.serviceand is injected viamedia$. - Service is called
ui.panel.serviceand is injected viapanel$. - Service is called
ui.sidenav.serviceand is injected viasidenav$. - Service is called
ui.sticky.serviceand is injected viasticky$. - Service is called
ui.toast.serviceand is injected viatoast$.
- Learn more about
angular-straphere.
- Service is called
ui.affix.serviceand is injected viaaffix$. - Service is called
ui.alert.serviceand is injected viaalert$. - Service is called
ui.datepicker.serviceand is injected viadatepicker$. - Service is called
ui.dropdown.serviceand is injected viadropdown$. - Service is called
ui.modal.serviceand is injected viamodal$. - Service is called
ui.popover.serviceand is injected viapopover$. - Service is called
ui.scrollspy.serviceand is injected viascrollspy$. - Service is called
ui.select.serviceand is injected viaselect$. - Service is called
ui.timepicker.serviceand is injected viatimepicker$. - Service is called
ui.tooltip.serviceand is injected viatooltip$. - Service is called
ui.typeahead.serviceand is injected viatypeahead$.
- Service is called
_.serviceand is injected via_. - Learn more about
Lodashhere.
- Service is called
chart.serviceand is injected viachart$. - Learn more about
d3here.
- Service is called
date.serviceand is injected viadate$. - Learn more about
angularMomenthere. - Learn more about
MomentJShere.
- Service is called
rest.serviceand is injected viarest$. - The rest$ service can be used in place of $resource.
- Learn more about
restangularhere.
- Service is called
promise.serviceand is injected viapromise$. promise$can be used in place of$q- it is a speedier and more robust implementation.- Learn more about
bluebirdhere.
- Service is called
socket.serviceand is injected viasocket$. - Learn more about
socket.io-clienthere.
- Service is called
upload.serviceand is injected viaupload$. - Learn more about
ng-file-uploadhere.
- Service is called
locale.serviceand is injected vialocale$. - Learn more about
angular-translatehere.
- Service is called
data.serviceand is injected viadata$. - Directive is called
data.directiveand is added viadata-src. - Learn more about
immutable-jshere.
- Service is called
print.serviceand is injected viaprint$. - Learn more about
teleprinthere.