
Security News
Browserslist-rs Gets Major Refactor, Cutting Binary Size by Over 1MB
Browserslist-rs now uses static data to reduce binary size by over 1MB, improving memory use and performance for Rust-based frontend tools.
angular-ios-calendar
Advanced tools
Calendar similar to the one found in ios7 as an AngularJs directive
An iOS 7 style calendar, exposed as an AngularJs directive.
In the root of your AngularJs project, run the following command:
bower install --save angular-ios-calendar
In your application Javascript, find where you instantiate your AngularJs app, and add this package as a dependency:
angular.module('myapp', [
'bguiz.angular.ioscalendar' // add this line
])
.config( /* ... */ );
Anywhere in your application templates, add the directive to your markup:
<angular-calendar>
</angular-calendar>
This is the isolate scope definition of the directive:
scope: {
events: '=',
selectDate: '&',
}
As such, you may pass in an events
variable,
and a selectDate
function,
like so:
<angular-calendar
events="ctrl.events"
select-date="ctrl.selectDate(date)">
</angular-calendar>
events
:
start
, which should be a valid moment
selectDate
:
date
, which should be a valid moment
moment
bower install --save momentjs
in the root folder of your applicationHTML
calendar.html
is found correctlycalendar.html
into its final builde.g. If you are using gulp, in gulpfile.js
:
Change this:
gulp.src([
'./src/app/**/*.html',
'!./src/app/index.html',
])
To this:
gulp.src([
'./src/app/**/*.html',
// './bower_components/**/*.html', //This line adds HTML files from all bower components
'./bower_components/angular-ios-calendar/*.html', //This line is specific to HTML files from this package
'!./src/app/index.html',
])
calendar.scss
is found and pre-processedcalendar.css
into its final builde.g. If you are using gulp.js, in gulpfile.js
Change this:
gulp.src([
'./src/app/**/*.scss',
'!./src/app/**/_*.scss'
])
To this:
gulp.src([
'./src/app/**/*.scss',
'!./src/app/**/_*.scss',
// './bower_components/**/*.scss', //These lines add SCSS files from all bower components
// '!./bower_components/**/_*.scss'
'./bower_components/**/*.scss', //These lines are specific to SCSS files from this package
'!./bower_components/**/_*.scss'
])
GPLv3
FAQs
Calendar similar to the one found in ios7 as an AngularJs directive
The npm package angular-ios-calendar receives a total of 2 weekly downloads. As such, angular-ios-calendar popularity was classified as not popular.
We found that angular-ios-calendar demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Browserslist-rs now uses static data to reduce binary size by over 1MB, improving memory use and performance for Rust-based frontend tools.
Research
Security News
Eight new malicious Firefox extensions impersonate games, steal OAuth tokens, hijack sessions, and exploit browser permissions to spy on users.
Security News
The official Go SDK for the Model Context Protocol is in development, with a stable, production-ready release expected by August 2025.