Updates IComponentOptions for angular 1.5 components

As per https://docs.angularjs.org/guide/component

components does not support restrict or isolate but they do require
This commit is contained in:
Boris Prpic
2016-02-07 21:11:51 +01:00
parent c393f8974d
commit 7b8b362742
+5 -13
View File
@@ -1710,20 +1710,12 @@ declare module angular {
* Define DOM attribute binding to component properties. Component properties are always bound to the component
* controller and not to the scope.
*/
bindings?: any;
bindings?: Object;
/**
* Whether transclusion is enabled. Enabled by default.
*/
transclude?: boolean;
/**
* Whether the new scope is isolated. Isolated by default.
*/
isolate?: boolean;
/**
* String of subset of EACM which restricts the component to specific directive declaration style. If omitted,
* this defaults to 'E'.
*/
restrict?: string;
require? : string | Array<string>;
$canActivate?: () => boolean;
$routeConfig?: RouteDefinition[];
}
@@ -1774,12 +1766,12 @@ declare module angular {
name?: string;
priority?: number;
replace?: boolean;
require?: any;
require? : string | Array<string>;
restrict?: string;
scope?: any;
template?: any;
template?: string | Function;
templateNamespace?: string;
templateUrl?: any;
templateUrl?: string | Function;
terminal?: boolean;
transclude?: any;
}