Prime Number Table written in native AngularJS

Angular Core Dependency: ~1.x

Module License: MIT

Added by: Sam Deering





Stars: 3

Watchers: 3

Forks: 0


Dale Lotts
Dale Lotts

Module Description

Angular Prime Directive

Native AngularJS directive that displays a Prime Number table, which is a convenient way to visualize the prime number distribution.

Build Status


Prime Directive default view



  • AngularJS 1.1.3 or higher (Not tested with 1.0.x)

#Testing We use karma and jshint to ensure the quality of the code. The easiest way to run these checks is to use grunt:

npm install -g grunt-cli
npm install bower grunt

The karma task will try to open Chrome as a browser in which to run the tests. Make sure this is available or change the configuration in test\test.config.js

#Usage We use bower for dependency management. Add

dependencies: {
    "angular-prime-directive": "latest"

To your bower.json file. Then run

bower install

This will copy the angular-prime-directive files into your components folder, along with its dependencies.

Load the script files in your application:

<script type="text/javascript" src="components/angular/angular.js"></script>
<script type="text/javascript" src="components/angular-prime-directive/src/js/primeDirective.js"></script>
<link rel="stylesheet" href="components/angular-prime-directive/src/css/primeDirective.css">

Add the date module as a dependency to your application module:

var myAppModule = angular.module('MyApp', [''])

Apply the directive to your form elements:

<div data-prime-directive ></div>



Module stats last updated: 2015-06-07 05:42:51

Disclaimer: Some data on this page may have been gathered from the authors GitHub respository. If you see any mistakes or outdated information please let us know. Thanks!