AngularJS Express component to add an Angular directive.
To install the component:
$ ngx install angular-directiveNo clue what the ngx command line tool is? Learn more about AngularJS Express.
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' });baseUrl: Base URL that component can use to construct linksngxDirective.name: Directive name to use in AngularngxDirective.controller: Controller name to use in Angular
- Initial version
