Socket
Socket
Sign inDemoInstall

angular-hint-modules

Package Overview
Dependencies
Maintainers
4
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

angular-hint-modules

An Angular Hint Module for identifying issues related to modules.


Version published
Weekly downloads
0
Maintainers
4
Weekly downloads
 
Created
Source

Angular Hint: ModulesBuild StatusCode Climate

Angular Hint Modules lets you spend less time finding silent errors in your code and more time programming. This tool is a subset of many under the Angular Hint repository that specializes in identifying errors relating to directives. For instructions on how to incorporate the whole Angular Hint repository into your project, please refer to the link above.

Angular Hint Modules identifies:
Missing Namespace

It is important for modules we create to have their own unique namespace so as to not conflict with existing modules in Angular or external libraries that may be used. As in the example below, if a module with name 'breadcrumb' was created, you would be warned and prompted to use a more appropriate name that adheres to namespace best practices.

angular.module('breadcrumbs').
  directive('myComponent', function() { ... };
});
Creating and Loading Modules

Hint Modules also notifies you of common problems regarding the creation and loading of modules.

The following code snippit will be the example for the following sections:

angular.module('createdAndLoaded',[]);
angular.module('createdAndLoaded',[]);
angular.module('createdButNotLoaded',[]);
angular.module('demoApp',
  ['ngHintModules','createdAndLoaded', 'createdButNLoadd','iDontEvenexist']);

In the example above you would be warned that:

  • The createdButNotLoaded module was created but that it was never loaded into the application.
  • The createdButNLoadd module was not found and that you should try createdButNotLoaded.
  • The createdAndLoaded module name was used twice and the first will be overwritten.
  • The iDontEvenexist module was loaded but it was never created.
ngView with ngRoute

After routing was seperated from Angular.js, it was required to have ngRoute as a dependency for your main module. Since this change, ngRoute often got left out, so this module also notifies you if you have routing in your application without requiring ngRoute.

License

Copyright 2014 Google, Inc. http://angularjs.org

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

FAQs

Package last updated on 30 Jul 2014

Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc