mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-09-09 11:13:57 +08:00
Update angular.d.ts
More detailed directive function
This commit is contained in:
Vendored
+21
-2
@@ -85,9 +85,9 @@ declare module ng {
|
||||
controller(name: string, controllerConstructor: Function): IModule;
|
||||
controller(name: string, inlineAnnotadedConstructor: any[]): IModule;
|
||||
controller(object : Object): IModule;
|
||||
directive(name: string, directiveFactory: Function): IModule;
|
||||
directive(name: string, directiveFactory: (...params)=> IDirective): IModule;
|
||||
directive(name: string, inlineAnnotadedFunction: any[]): IModule;
|
||||
directive(object: Object): IModule;
|
||||
directive(object: Object): IModule;
|
||||
factory(name: string, serviceFactoryFunction: Function): IModule;
|
||||
factory(name: string, inlineAnnotadedFunction: any[]): IModule;
|
||||
factory(object: Object): IModule;
|
||||
@@ -629,6 +629,25 @@ declare module ng {
|
||||
otherwise(params: any): IRouteProvider;
|
||||
when(path: string, route: IRoute): IRouteProvider;
|
||||
}
|
||||
|
||||
///////////////////////////////////////////////////////////////////////////
|
||||
// Directive
|
||||
// see http://docs.angularjs.org/api/ng.$compileProvider#directive
|
||||
// and http://docs.angularjs.org/guide/directive
|
||||
///////////////////////////////////////////////////////////////////////////
|
||||
|
||||
interface IDirective{
|
||||
priority?: number;
|
||||
template?: string;
|
||||
templateUrl?: string;
|
||||
replace?: bool;
|
||||
transclude?: bool;
|
||||
restrict?: string;
|
||||
scope?: bool;
|
||||
link?: Function;
|
||||
compile?: Function;
|
||||
}
|
||||
|
||||
|
||||
///////////////////////////////////////////////////////////////////////////
|
||||
// AUTO module (angular.js)
|
||||
|
||||
Reference in New Issue
Block a user