Operators from Google Closure Type of expression .
! identifies the type as "Non-nullable".<...> identifies the content type of an object / collection.= identifies the parameter as "Optional."
So, in the case of angular.module():
- There are no arguments for
requires. - When given, it cannot
nulland must be Arraycontaining only string values.
angular.module('Foo'); // valid arguments
angular.module('Foo', null); // not valid
angular.module('Foo', ['Bar']); // valid
angular.module('Foo', [false]); // not valid
angular.module('Foo', function(){}); // valid
source
share