Rosina Bignall

Creative Software Engineer

Plugins for angular-bootstrap-calendar and Moment.js added to AngularZF1

| 0 comments

I added two new plugins to AngularZF1: BootstrapCalendar and Moment.

BootstrapCalendar is a plugin to include the angular-bootstrap-calendar module in your views.

angular-bootstrap-calendar is an AngularJS port of the original jQuery bootstrap calendar. It is a fantastic calendar module for Angular.

Moment in a plugin to include Momentjs in your views

Moment allows you to parse, validate, manipulate, and display dates in JavaScript

AngularZF1 is

A fork of the ZendX_Jquery component that allows you to easily include AngularJS, Angular modules and other Javascript libraries in your views.

BootstrapCalendar

BootstrapCalendar is configured with the following options in your config ini

; Angular-Bootstrap-Calendar
resources.Angular.plugin.BootstrapCalendar.enable = false
resources.Angular.plugin.BootstrapCalendar.base = "/js/angular-bootstrap-calendar"

Then add the following to your view:
<?php $this->angularBootstrapCalendar(); ?>

Or include it automatically by setting .enable to true.  It will automatically include Moment in your view as well.

Moment

Moment is configured with the following options in your config.ini

; Moment
resources.Js.plugin.moment.enable = false
Then add the following to your view:
<?php $this->jsMoment(); ?>

Or include it automatically by setting .enable to true.

More

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

Hope you find them helpful!

Thanks to Social & Scientific Systems, Inc. for whom AngularZF1 was originally and continues to be developed.

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 *.