Seperate controllers angular js

I'm new to Angular js and experimenting with the code etc. The thing what I don't get is how to make seperate module's. For example: I want to have a module for all the user functions such as login, register, forgot password etc.

I can't find a proper tutorial to learn how to do this. Can someone help me?

I have this in my app.js:

// Ionic Starter App

// angular.module is a global place for creating, registering and retrieving Angular modules
// 'starter' is the name of this angular module example (also set in a <body> attribute in index.html)
// the 2nd parameter is an array of 'requires'
angular.module('starter', ['ionic'])

.run(function($ionicPlatform) {
$ionicPlatform.ready(function() {
if(window.cordova && window.cordova.plugins.Keyboard) {
// Hide the accessory bar by default (remove this to show the accessory bar above the keyboard
// for form inputs)
cordova.plugins.Keyboard.hideKeyboardAccessoryBar(true);

// Don't remove this line unless you know what you are doing. It stops the viewport
// from snapping when text inputs are focused. Ionic handles this internally for
// a much nicer keyboard experience.
cordova.plugins.Keyboard.disableScroll(true);
}
if(window.StatusBar) {
StatusBar.styleDefault();
}
});
})

.run(function($ionicPlatform) {
$ionicPlatform.ready(function() {
if(window.cordova && window.cordova.plugins.Keyboard) {
// Hide the accessory bar by default (remove this to show the accessory bar above the keyboard
// for form inputs)
cordova.plugins.Keyboard.hideKeyboardAccessoryBar(true);

// Don't remove this line unless you know what you are doing. It stops the viewport
// from snapping when text inputs are focused. Ionic handles this internally for
// a much nicer keyboard experience.
cordova.plugins.Keyboard.disableScroll(true);
}
if(window.StatusBar) {
StatusBar.styleDefault();
}
});
})

//note these can be in same files or separate files all together
angular.module('starter.login',[
'starter.login.services', //sub module for services
'starter.login.directives', //sub module for directives
]);
angular.module('starter.register',[]);
angular.module('starter.forgot_password',[]);
//you can further create submodules for above modules
//eg: sub module for directive, sub module for service etc as

Step3: You can then define separately controllers/services/factories/directives for these modules.

//giving example for just login controller
angular.module('starter.login').controller(function($scope){
//note this module must be defined first before using it with a controller. so files must be loaded in the right order
});
//similarly you will have to define your sub-modules before using them with services/controllers or directives