OpenVeo server API for plugins

API Docs for: 7.0.0
Show:

ComponentExpression

Summary

A JavaScript component expression as angularJsApp.component().

Constructor

ComponentExpression

Syntax

ComponentExpression

(
  • expression
)

Summary

Parameters:

  • expression Object

    The component call expression as returned by esprima

Item Index

Methods

getDependencies

Syntax

getDependencies

() Array

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

isValid

() Boolean

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