Security News
Bun 1.2 Released with 90% Node.js Compatibility and Built-in S3 Object Support
Bun 1.2 enhances its JavaScript runtime with 90% Node.js compatibility, built-in S3 and Postgres support, HTML Imports, and faster, cloud-first performance.
simple-directives
Advanced tools
A refreshingly simple, declarative directive library for Angular.
npm install --save simple-directives
bower install --save simple-directives
yarn add simple-directives
Once you've done that, you'll have a copy of simple-directives
in your project's
bower_components
or node_modules
directory.
The easiest way to use simple-directives
in your project is by including it with
a script tag.
<script
type="application/javascript"
src="./bower_components/simple-directives/simple-directives.js">
</script>
This library also works well with build systems like gulp
especially with gulp-main-bower-files
.
Once you've added a script tag, or bundled simple-directives.js
, you can use it by adding it as a dependency to your angular app like this:
(function() {
angular.module('ExampleApp', [
'simple-directives'
])
})()
Here's an example of how to build a flexible, declarative table.
<s-table
s-model-list="ActorsController.myFavoriteActors"
default-sort-key="vm.defaultSortKey"
default-sort-order="vm.defaultSortOrder"
on-sort-change="vm.doStuff">
<s-thead>
<s-row>
<s-column s-order-by="name">Name</s-column>
<s-column s-order-by="age">Age</s-column>
<s-column s-order-by="award_count">Number of Awards</s-column>
</s-row>
</s-thead>
<s-tbody>
<s-row>
<s-cell>{{ model.name }}</s-column>
<s-cell>{{ model.age }}</s-column>
<s-cell>{{ model.award_count }}</s-column>
</s-row>
</s-body>
</s-table>
Made with precision by @nilz3ro.
FAQs
A declarative directive library for angular.
The npm package simple-directives receives a total of 2 weekly downloads. As such, simple-directives popularity was classified as not popular.
We found that simple-directives 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
Bun 1.2 enhances its JavaScript runtime with 90% Node.js compatibility, built-in S3 and Postgres support, HTML Imports, and faster, cloud-first performance.
Security News
Biden's executive order pushes for AI-driven cybersecurity, software supply chain transparency, and stronger protections for federal and open source systems.
Security News
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.