Rosina Bignall

Creative Software Engineer

AngularZF1, AngularJS, Restangular and LodashAngularZF1, AngularJS, Restangular and Lodash

Restangular and Lodash plugins added to AngularZF1

| 0 comments

I added two new plugins to AngularZF1: Restangular and Lodash.

Restangular is

Restangular is an AngularJS service that simplifies common GET, POST, DELETE, and UPDATE requests with a minimum of client code.

Lodash is

A modern JavaScript utility library delivering modularity, performance, & extras.

Restangular is configured with the following options in your config ini

; Angular Restangular
resources.Angular.plugin.restangular.enable = false

Then add the following to your view:

<?php $this->angularRestangular(); ?>

Or include it automatically by setting .enable to true.

Lodash isn’t an Angular module so I decide to make a new Js resource for it and possibly other plugins in the future. ¬†Add the Js resource to your config ini with the following options:

resources.Js.enable = true
resources.Js.render_mode = 255 ; default
resources.Js.minified = false
resources.Js.javascriptfile = "/some/file.js"
resources.Js.javascriptfiles.0 = "/some/file.js"

Add the Lodash plugin with the following options:

; Js lodash
resources.Js.plugin.lodash.enable = false

Then add the following to your view:

<?php $this->jsLodash(); ?>

Or include it automatically by setting .enable to true.

Read more about these plugins and the rest of AngularZF1 on the AngularZF1 page.

Hope you find them helpful!

Author: Rosina Bignall

I've been on the internet since the 90's. Check out my professional blog at http://rosinabignall.com and my personal blog at http://rosina.me.

Leave a Reply

Required fields are marked *.