The primary library for the AngularDart web framework.

Import this library as follows:

import 'package:angular/angular.dart';

For help using this library, see the AngularDart documentation:

Classes

AfterContentChecked
Implement this interface to get notified after every check of your directive's content. [...]
AfterContentInit
Implement this interface to get notified when your directive's content has been fully initialized. [...]
AfterViewChecked
Implement this interface to get notified after every check of your component's view. [...]
AfterViewInit
Implement this interface to get notified when your component's view has been fully initialized. [...]
AngularEntrypoint
Marks a function or method as an Angular 2 entrypoint. [...]
ApplicationRef
A reference to an Angular application running on a page. [...]
AsyncPipe
An async pipe awaits for a value from a Future or Stream. When a value is received, the async pipe marks the component to be checked for changes. [...]
Attribute
An annotation to specify that a constant attribute value should be injected. [...]
ChangeDetectionStrategy
Describes within the change detector which strategy will be used the next time change detection is triggered. [...]
ChangeDetectorRef
Component
Declare reusable UI building blocks for an application. [...]
ComponentFactory
ComponentLoader
Supports imperatively loading and binding new components at runtime. [...]
ComponentRef
Represents an instance of a Component created via a ComponentFactory. [...]
ComponentResolver
Low-level service for loading ComponentFactorys, which can later be used to create and render a Component instance.
ComponentState
Mixin representing an component with observable state change. [...]
ContentChild
Configures a content query. [...]
ContentChildren
Configures a content query. [...]
CurrencyPipe
WARNING: this pipe uses the Internationalization API. Therefore it is only reliable in Chrome and Opera browsers. [...]
DatePipe
Formats a date value to a string based on the requested format. [...]
DecimalPipe
WARNING: this pipe uses the Internationalization API. Therefore it is only reliable in Chrome and Opera browsers. [...]
Directive
An annotation that marks a class as an Angular directive, allowing you to attach behavior to elements in the DOM. [...]
DoCheck
Implement this interface to override the default change detection algorithm for your directive. [...]
ElementRef
A wrapper around a native element inside of a View. [...]
EmbeddedViewRef
Represents an Angular View. [...]
EventEmitter
DEPRECATED: Use StreamController and Stream instead. [...]
EventManagerPlugin
ExceptionHandler
Provides a hook for centralized exception handling. [...]
GetTestability
Adapter interface for retrieving the Testability service associated for a particular context.
Host
Specifies that an injector should retrieve a dependency from any injector until reaching the closest host. [...]
HostBinding
Declares a host property binding. [...]
HostListener
Declares a host listener. [...]
Inject
A parameter metadata that specifies a dependency. [...]
Injectable
Compile-time metadata that marks a class Type or Function for injection. [...]
Injector
Support for imperatively loading dependency injected services at runtime. [...]
Input
Declares a data-bound input property. [...]
JsonPipe
Transforms any input value using JSON.encode. Useful for debugging.
LowerCasePipe
Transforms text to lowercase.
NgClass
The NgClass directive conditionally adds and removes CSS classes on an HTML element based on an expression's evaluation result. [...]
NgFor
The NgFor directive instantiates a template once per item from an iterable. The context for each instantiated template inherits from the outer context with the given loop variable set to the current item from the iterable. [...]
NgIf
Causes an element and its contents to be conditionally added/removed from the DOM based on the value of the given boolean template expression. [...]
NgStyle
The NgStyle directive changes an element's style based on the bound style expression: [...]
NgSwitch
Adds or removes DOM sub-trees when their match expressions match the switch expression. [...]
NgSwitchDefault
Default case statements are displayed when no match expression matches the switch expression value. [...]
NgSwitchWhen
Insert the sub-tree when the ngSwitchWhen expression evaluates to the same value as the enclosing switch expression. [...]
NgTemplateOutlet
Creates and inserts an embedded view based on a prepared TemplateRef. [...]
NgZone
An injectable service for executing work inside or outside of the Angular zone. [...]
NgZoneError
Stores error information; delivered via NgZone.onError stream.
OnChanges
Implement this interface to get notified when any data-bound property of your directive changes. [...]
OnDestroy
Implement to execute ngOnDestroy before your component is destroyed. [...]
OnInit
Implement to execute ngOnInit after the first change-detection completed. [...]
OpaqueToken
Creates a token that can be used in a DI Provider. [...]
Optional
A parameter metadata that marks a dependency as optional. [...]
Output
Declares an event-bound output property. [...]
PercentPipe
WARNING: this pipe uses the Internationalization API. Therefore it is only reliable in Chrome and Opera browsers. [...]
Pipe
Declare reusable pipe function. [...]
PipeTransform
To create a Pipe, you must implement this interface. [...]
PlatformRef
The Angular platform is the entry point for Angular on a web page. Each page has exactly one platform, and services (such as reflection) which are common to every Angular application running on the page are bound in its scope. [...]
Provider
Describes at compile-time how an Injector should be generated. [...]
QueryList
A list of items that Angular keeps up to date when the state of the application changes. [...]
ReflectiveInjector
An injector that resolves provider instances with runtime information. [...]
RenderComponentType
Component prototype and runtime style information that are shared across all instances of a component type.
ReplacePipe
Creates a new String with some or all of the matches of a pattern replaced by a replacement. [...]
Self
Specifies that an Injector should retrieve a dependency only from itself. [...]
SimpleChange
Represents a basic change from a previous to a new value.
SkipSelf
Specifies that the dependency resolution should start from the parent injector. [...]
SlicePipe
Creates a new List or String containing a subset (slice) of the elements. [...]
SlowComponentLoader
Supports imperatively loading and binding new components at runtime. [...]
TemplateRef
Represents an Embedded Template that can be used to instantiate Embedded Views. [...]
Testability
The Testability service provides testing hooks that can be accessed from the browser and by services such as Protractor. Each bootstrapped Angular application on the page will have an instance of Testability.
TestabilityRegistry
A global registry of Testability instances for specific elements.
UpperCasePipe
Implements uppercase transforms to text.
UrlResolver
ViewChild
Declares a reference to a single child element. [...]
ViewChildren
Declares a reference to multiple child elements. [...]
ViewContainerRef
Represents a container where one or more Views can be attached. [...]
ViewRef
WrappedException
WrappedValue
Indicates that the result of a Pipe transformation has changed even though the reference has not changed. [...]

Constants

APP_ID OpaqueToken
A DI Token representing a unique string id assigned to the application by Angular and used primarily for prefixing application attributes and CSS styles when ViewEncapsulation#Emulated is being used. [...]
const OpaqueToken("AppId")
APP_INITIALIZER OpaqueToken
A function that will be executed when an application is initialized.
const OpaqueToken("Application Initializer")
APPLICATION_COMMON_PROVIDERS → List
A default set of providers which should be included in any Angular application, regardless of the platform it runs onto.
const [APPLICATION_CORE_PROVIDERS, const Provider(ComponentResolver, useClass: ReflectorComponentResolver), APP_ID_RANDOM_PROVIDER, AppViewUtils, const Provider(SlowComponentLoader), const Provider(Co…
BROWSER_APP_PROVIDERS → dynamic
Providers that should be injected when bootstrapping a component.
const [BROWSER_APP_COMMON_PROVIDERS, const Provider(DOCUMENT, useFactory: createDocument, deps: const [])]
COMMON_DIRECTIVES → List<List<Type>>
A collection of Angular core directives that are likely to be used in each and every Angular application. This includes core directives (e.g., NgIf and NgFor). [...]
const [CORE_DIRECTIVES]
COMMON_PIPES → dynamic
A collection of Angular core pipes that are likely to be used in each and every application. [...]
const [AsyncPipe, UpperCasePipe, LowerCasePipe, JsonPipe, SlicePipe, DecimalPipe, PercentPipe, CurrencyPipe, DatePipe, ReplacePipe]
CORE_DIRECTIVES → List<Type>
A collection of Angular core directives that are likely to be used in each and every Angular application. [...]
const [NgClass, NgFor, NgIf, NgTemplateOutlet, NgStyle, NgSwitch, NgSwitchWhen, NgSwitchDefault]
DOCUMENT OpaqueToken
A DI Token representing the main rendering context. In a browser this is the DOM Document. [...]
const OpaqueToken("DocumentToken")
noValueProvided → Object
A marker that represents a lack-of-value for the useValue parameter.
@visibleForTesting
'__noValueProvided__'
PACKAGE_ROOT_URL OpaqueToken
A token which indicates the root directory of the application
const OpaqueToken("Application Packages Root URL")
PLATFORM_INITIALIZER OpaqueToken
A function that will be executed when a platform is initialized.
const OpaqueToken("Platform Initializer")

Functions

appIdRandomProviderFactory() → String
bootstrap(Type appComponentType, [ List customProviders ]) → Future<ComponentRef>
Bootstrapping for Angular applications. [...]
bootstrapStatic(Type appComponentType, [ List customProviders, Function initReflector ]) → Future<ComponentRef>
See bootstrap for more information.
browserStaticPlatform() PlatformRef
coreBootstrap(Injector injector, ComponentFactory componentFactory) ComponentRef
Shortcut for ApplicationRef.bootstrap. [...]
coreLoadAndBootstrap(Injector injector, Type componentType) → Future<ComponentRef>
Resolves the componentFactory for the given component, waits for asynchronous initializers and bootstraps the component. [...]
createDocument() → HtmlDocument
createNgZone() NgZone
Create an Angular zone.
createPlatform(Injector injector) → PlatformRefImpl
Creates a platform. Platforms have to be eagerly created via this function.
disableDebugTools() → void
Disables Angular 2 tools.
disposePlatform() → void
Dispose the existing platform.
enableDebugTools(ComponentRef ref) → void
Enabled Angular 2 debug tools that are accessible via your browser's developer console. [...]
getPlatform() PlatformRef
Returns the current platform.
provide(Object token, { Type useClass, Object useValue: noValueProvided, Object useExisting, Function useFactory, List<Object> deps, bool multi: false }) Provider
An alias for new Provider; see Provider.

Enums

ViewEncapsulation
Defines template and style encapsulation options available for Component's View. [...]
Visibility
Restricts where a directive or provider is visible for injection.

Typedefs

ComponentStateCallback() → void
TrackByFn(int index, item) → dynamic

Exceptions / Errors

ExpressionChangedAfterItHasBeenCheckedException
An error thrown if application changes model breaking the top-down data flow. [...]