
Security News
Risky Biz Podcast: Making Reachability Analysis Work in Real-World Codebases
This episode explores the hard problem of reachability analysis, from static analysis limits to handling dynamic languages and massive dependency trees.
@petrocloud/angular-dayparts
Advanced tools
Angular directive for select hours in a week.
Sample 1
Sample 2
Include the module in your app
angular.module('myapp', ['angular-dayparts'])
Configure the directive inside the controller
$scope.options = {
// Reset button
reset: true, // default false
// Event triggered when selecting a cell
onChange: function(selected) {
console.log('selected: ', selected)
},
// Prepopulated cells
selected: ['monday-14', 'monday-15', 'monday-15.5'], // monday 2:00 pm, monday 3:00 pm, monday 3:30 pm
// When true clicking on the day name it will select the entire row
disableRowSelection: true, // default false
// When true clicking on the hour it will select the entire columns
disableColumnSelection: true // default false,
// Reverses x and y axis so time goes from left to right and day goes top to bottom (i.e. sample1 is `reverse: true`)
reverse: true, // default false
// adds "midnight" and "noon" labels to 12:00 am and 12:00 pm times.
twelveOClockLabel: true // default false
};
Call the directive from your page
<angular-dayparts options="options"></angular-dayparts>
Install dependencies:
npm install
Compile:
gulp
Run web server in at the root example:
- cd angular-dayparts
- http-server
Starting up http-server, serving ./
Available on:
http://127.0.0.1:8080
http://localhost:8080
Hit CTRL-C to stop the server
Released under the terms of MIT License.
FAQs
Angular directive for select hours in a week
We found that @petrocloud/angular-dayparts demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 7 open source maintainers 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
This episode explores the hard problem of reachability analysis, from static analysis limits to handling dynamic languages and massive dependency trees.
Security News
/Research
Malicious Nx npm versions stole secrets and wallet info using AI CLI tools; Socket’s AI scanner detected the supply chain attack and flagged the malware.
Security News
CISA’s 2025 draft SBOM guidance adds new fields like hashes, licenses, and tool metadata to make software inventories more actionable.