Module AngularJS

Provides classes for working with AngularJS (also known as Angular 1.x) applications.

NOTE: The API of this library is not stable yet and may change in the future.

Import path

import javascript

Predicates

angular

Holds if nd is a reference to the angular variable.

builtinServiceRef

Holds if ref is a reference to the builtin service with the name serviceName.

getBuiltinServiceOfKind

Gets a builtin service with a specific kind.

moduleRef

Holds if nd is a reference to module m, that is, it is either a definition of m, a lookup of m, or a chained method call on m.

routeProviderRef

Holds if nd is a reference to the $routeProvider service, that is, it is either an access of $routeProvider, or a chained method call on $routeProvider.

Classes

AngularJSCall

A call to an AngularJS function.

AngularModule

An AngularJS module.

AngularScope

An abstract representation of a set of AngularJS scope objects.

AnimationDefinition

An animation defined with module.animation or $animationProvider.register.

BuiltinDirective

A built-in AngularJS directive.

BuiltinServiceReference

A reference to a builtin service.

ComponentDefinition

A component defined with module.component or $compileProvider.component.

ComponentDirective

An AngularJS component defined by angular.component.

ConfigMethodDefinition

An AngularJS config method definition, that is, a method call of the form module.config(fun).

ConstantRecipeDefinition

An AngularJS constant recipe definition, that is, a method call of the form module.constant("name", "constant value").

Controller

An AngularJS controller instance.

ControllerDefinition

A controller defined with module.controller or $controllerProvider.register.

CustomDirective

A custom AngularJS directive, either a general directive defined by angular.directive or a component defined by angular.component.

CustomServiceDefinition

A custom AngularJS service, defined through $provide.service, module.controller or a similar method.

CustomServiceReference

A reference to a custom service.

DecoratorRecipeDefinition

An AngularJS decorator recipe definition, that is, a method call of the form module.decorator("name", f).

DependencyInjection

Base class for expressions that dependency-inject some of their input with AngularJS dependency injection services.

DirectiveDefinition

A directive defined with module.directive or $compileProvider.directive.

DirectiveInstance

An AngularJS directive, either built-in or custom.

DirectiveTarget

A syntactic element to which an AngularJS directive can be attached.

DirectiveTargetName

The name of a directive target.

DirectiveTargetType

The type of a directive target, indicating whether it is an element (“E”), an attribute (“A”), a class name (“C”) or a comment (“M”).

ElementScope

An abstract representation of all the AngularJS scope objects for a DOM element.

Empty

The empty alternative of maybes.

FactoryRecipeDefinition

An AngularJS factory recipe definition, that is, a method call of the form module.factory("name", f).

FilterDefinition

A filter defined with module.filter or $filterProvider.register.

GeneralDirective

A custom AngularJS directive defined by angular.directive.

HtmlFileScope

An abstract representation of all the AngularJS scope objects in an HTML file.

InjectableFunction

An injectable function, that is, a function that could have its dependency parameters automatically provided by the AngularJS $inject service.

InjectableFunctionServiceRequest

A request for a service, in the form of a dependency-injected function.

InjectorInvokeCall

A call to $angular.injector().invoke(...)

IsolateScope

An abstract representation of the AngularJS isolate scope of a directive.

LinkFunction

A link-function used in a custom AngularJS directive.

ModuleApiCall

A call to a method from the angular.Module API.

ModuleApiCallDependencyInjection
NgAst

The root node of an abstract syntax tree.

NgAstNode

An NgAst node from a parsed AngularJS expression source.

NgCallArguments

Super class for NgConsCallArgument and Empty.

NgCallExpr

A call expression node.

NgConsCallArgument

A non-empty cons-list of arguments for a call.

NgDataFlowNode

A node in an AngularJS expression that can have dataflow.

NgDotExpr

A dot expression node for looking up a fixed property with a fixed name.

NgExpr

An expression node.

NgExprStmt

An expression-statement node.

NgFilter

A filter node.

NgFilterArgument

A non-empty cons-list of arguments for a filter.

NgFilterChain

A “filter-chain” node (see https://github.com/angular/angular.js/blob/master/src/ng/parse.js -> filterChain).

NgMaybeFilter

Super class for NgFilter and Empty.

NgMaybeFilterArgument

Super class for NgFilterArgument and Empty.

NgNumber

A number expression node.

NgSingleFilter

A single filter node.

NgSource

The source of an AngularJS expression.

NgSourceProvider

Extensible class for AngularJS expression source providers (e.g. id="{{myId}}" of <div id="{{myId}}" class="left"/>).

NgString

A string expression node.

NgToken

A token from a tokenized AngularJS expression source.

NgVarExpr

A variable reference expression node.

ProviderRecipeDefinition

An AngularJS provider recipe definition, that is, a method call of the form module.provider("name", fun).

RecipeDefinition

A definition of a custom AngularJS dependency injection service using a “recipe”.

RouteSetup

A setup of an AngularJS “route”, using the $routeProvider API.

RunMethodDefinition

An AngularJS run method definition, that is, a method call of the form module.run(fun).

ScopeServiceReference

The $scope or $rootScope service.

ServiceRecipeDefinition

An AngularJS service recipe definition, that is, a method call of the form module.service("name", f).

ServiceReference

A reference to a service.

ServiceRequest

A request for one or more AngularJS services.

ValueRecipeDefinition

An AngularJS value recipe definition, that is, a method call of the form module.value("name", value).