ViewFactory

export interface ViewFactory

exported from angular2/core defined in angular2/src/core/metadata.ts (line 246)

ViewMetadata factory for creating annotations, decorators or DSL.

Example as TypeScript Decorator

import {Component, View} from "angular2/core"; @Component({...}) @View({...}) class MyComponent { constructor() { ... } }

Example as ES5 DSL

var MyComponent = ng .Component({...}) .View({...}) .Class({ constructor: function() { ... } })

Example as ES5 annotation

var MyComponent = function() {
  ...
};

MyComponent.annotations = [
  new ng.Component({...}),
  new ng.View({...})
]