Skip to content

ngx-components/angular-directive

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

angular-express-header

Angular directive

AngularJS Express component to add an Angular directive.

Installation

To install the component:

$ ngx install angular-directive

No clue what the ngx command line tool is? Learn more about AngularJS Express.

How to use

After installing the component:

  • edit directive definition object in _build/ngx-directive.directive.js
  • edit directive controller in _build/ngx-directive.controller.js
  • edit directive template in template.jade
  • update the directive name and controller name in _build/config.js

and import the component in your Angular application:

// Angular main module
var ngModule = angular.module('app', []);

// Import component
import c from 'components/angular-directive/_build/index';

// Instantiate component
c(ngModule, { baseUrl: 'components/angular-directive' });

Component options

  • baseUrl: Base URL that component can use to construct links
  • ngxDirective.name: Directive name to use in Angular
  • ngxDirective.controller: Controller name to use in Angular

License

MIT

Change log

v0.1.0

  • Initial version

About

Angular Express component to add a directive

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published