ComponentExpression
Summary
A JavaScript component expression as angularJsApp.component().
Constructor
ComponentExpression
Syntax
ComponentExpression
(
-
expression
Summary
Parameters:
-
expression
ObjectThe component call expression as returned by esprima
Item Index
Methods
Methods
getDependencies
Syntax
Summary
Gets AngularJS component dependencies.
The following dependency expressions are supported:
- The attribute "controller" of the component definition
Returns:
Array:
The list of dependencies
isValid
Syntax
Summary
Validates that the expression is an AngularJS component definition expression.
An AngularJS component definition expression must have two arguments:
- The name of the component to define
- The description object of the component
Returns:
Boolean:
true if this is a valid AngularJS component definition expression, false otherwise