Dependency injection is your friend when you want your code to be testable and if you work with Angular you know that this is a fundamental concept. Angular 2 will be developed with TypeScript but if you want type safety you can use TypeScript with Angular 1.x today as well. When it comes to DI with Angular and TypeScript, you can do some pretty nice stuff.
Libraries and frameworks like Angular.js will make things easier for you and provide you with a clear way to design your code but you have to respect its rules. Naming element directives properly is one of the very important rules.
The module concept in Angular.js is something that you love when you’re one of these developers who don’t like having global variables in your application. I’m one of these guys. It works by letting you define angular modules and then you can include objects in these modules based on what their functionality is. For example you might want to have a module for all your network services, another for your directives, another for your controllers and so on. Defining these modules and accessing them later from some other part of your code might be a bit confusing because the syntax differences are minor. This tip is all about these two functions in Angular.