Module: alfresco/experimental/ng2/Bootstrap

alfresco/experimental/ng2/Bootstrap

PLEASE NOTE: As this module resides within the "alfresco/experimental" package it is not subject to the same backwards compatibility rules as other widgets. It can change or even be removed between released

The purpose of this widget is to provide a way to bootstrap Angular 2 widgets. In order to use this widget it is necessary to apply the "Angular 2 Support Extension" module to provide the SystemJS support required to dynamically transpile TypeScript.

Since:
  • 1.0.66
Author:
  • Dave Draper
License:
Source:

Mixes In

  • external:dojo/_TemplatedMixin

Members

main :string

This should be configured to be the component to be loaded to bootstrap Angular 2. This will be resolved against the standard AMD packages so care should be taken to ensure that this will resolve appropriately.
Type:
  • string
Default Value:
  • null
Source:

templateString :string

This should be configured with the DOM template that contains the custom elements that will be matched by the Angular 2 components loaded.
Type:
  • string
Default Value:
  • "
    No template provided
Source:

Methods

postCreate()

This bootstraps the Angular 2 components
Source: