CodeQL library for JavaScript/TypeScript
codeql/javascript-all 0.8.15-dev (changelog, source)
Search

Module Angular2

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

Import path

import javascript

Predicates

activatedRoute

Gets a reference to an ActivatedRoute object.

activatedRouteProp

Gets a data flow node referring to the value of the route property name, accessed via one of the following patterns: js route.snapshot.name route.snapshot.data.name route.name.subscribe(x => ...)

activatedRouteSnapshot

Gets a reference to an ActivatedRouteSnapshot object.

domSanitizer

Gets a reference to a DomSanitizer object.

httpClient

Gets a reference to an HttpClient object.

isAngularExpressionAttribute

Holds if the value of attrib is interpreted as an Angular expression.

paramDictionaryObject

Gets a reference to a Params object, usually containing values from the URL.

paramMap

Gets a reference to a ParamMap object, usually containing values from the URL.

router

Gets a reference to a Router object.

routerState

Gets a reference to a RouterState object.

routerStateSnapshot

Gets a reference to a RouterStateSnapshot object.

urlSegment

Gets a data flow node referring to a UrlSegment object matched by some route.

Classes

AngularSource

A value from @angular/router derived from the URL.

ComponentClass

The class for an Angular component.

MatTableElement

A <mat-table> element.

PipeClass

A class with the @Pipe decorator.

Aliases

PipeRefExpr

A reference to a pipe function, occurring in a pipe expression that has been desugared to a function call.

TemplateTopLevel

The top-level containing the expression in a template placeholder.

TemplateVarRefExpr

A reference to a variable in a template expression, corresponding to a value plugged into the template.