Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rename the module provider function names #25

Open
levilindsey opened this issue Feb 17, 2015 · 0 comments
Open

Rename the module provider function names #25

levilindsey opened this issue Feb 17, 2015 · 0 comments

Comments

@levilindsey
Copy link
Owner

I think that modules should look like the following.

In the current implementation, the provider function is instead called appXxxx.

(function () {
  angular.module('appXxxxDirective', [])

    .directive('appXxxx', provider);

  function provider() {
    return {
      restrict: 'E',
      scope: {
      },
      templateUrl: 'components/...',
      link: link
    };

    // ---  --- //

    function link(scope, element, attrs) {
    }
  }
})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant