You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* @param {Aurelia} aurelia An instance of Aurelia.
16
+
*/
17
+
exportclassPlugins{
18
+
constructor(aurelia: Aurelia);
19
+
20
+
/**
21
+
* Configures an internal feature plugin before Aurelia starts.
22
+
*
23
+
* @method feature
24
+
* @param {string} plugin The folder for the internal plugin to configure (expects an index.js in that folder).
25
+
* @param {config} config The configuration for the specified plugin.
26
+
* @return {Plugins} Returns the current Plugins instance.
27
+
*/
28
+
feature(plugin: string,config: any): Plugins;
29
+
30
+
/**
31
+
* Configures an external, 3rd party plugin before Aurelia starts.
32
+
*
33
+
* @method plugin
34
+
* @param {string} plugin The ID of the 3rd party plugin to configure.
35
+
* @param {config} config The configuration for the specified plugin.
36
+
* @return {Plugins} Returns the current Plugins instance.
37
+
*/
38
+
plugin(plugin: string,config: any): Plugins;
39
+
40
+
/**
41
+
* Plugs in the default binding language from aurelia-templating-binding.
42
+
*
43
+
* @method defaultBindingLanguage
44
+
* @return {Plugins} Returns the current Plugins instance.
45
+
*/
46
+
defaultBindingLanguage(): Plugins;
47
+
48
+
/**
49
+
* Plugs in the router from aurelia-templating-router.
50
+
*
51
+
* @method router
52
+
* @return {Plugins} Returns the current Plugins instance.
53
+
*/
54
+
router(): Plugins;
55
+
56
+
/**
57
+
* Plugs in the default history implementation from aurelia-history-browser.
58
+
*
59
+
* @method history
60
+
* @return {Plugins} Returns the current Plugins instance.
61
+
*/
62
+
history(): Plugins;
63
+
64
+
/**
65
+
* Plugs in the default templating resources (if, repeat, show, compose, etc.) from aurelia-templating-resources.
66
+
*
67
+
* @method defaultResources
68
+
* @return {Plugins} Returns the current Plugins instance.
69
+
*/
70
+
defaultResources(): Plugins;
71
+
72
+
/**
73
+
* Plugs in the event aggregator from aurelia-event-aggregator.
74
+
*
75
+
* @method eventAggregator
76
+
* @return {Plugins} Returns the current Plugins instance.
77
+
*/
78
+
eventAggregator(): Plugins;
79
+
80
+
/**
81
+
* Sets up the Aurelia configuration. This is equivalent to calling `.defaultBindingLanguage().defaultResources().history().router().eventAggregator();`
82
+
*
83
+
* @method standardConfiguration
84
+
* @return {Plugins} Returns the current Plugins instance.
85
+
*/
86
+
standardConfiguration(): Plugins;
87
+
88
+
/**
89
+
* Plugs in the ConsoleAppender and sets the log level to debug.
90
+
*
91
+
* @method developmentLogging
92
+
* @return {Plugins} Returns the current Plugins instance.
93
+
*/
94
+
developmentLogging(): Plugins;
95
+
}
96
+
97
+
/**
98
+
* The framework core that provides the main Aurelia object.
99
+
*
100
+
* @class Aurelia
101
+
* @constructor
102
+
* @param {Loader} loader The loader for this Aurelia instance to use. If a loader is not specified, Aurelia will use a defaultLoader.
103
+
* @param {Container} container The dependency injection container for this Aurelia instance to use. If a container is not specified, Aurelia will create an empty container.
104
+
* @param {ResourceRegistry} resources The resource registry for this Aurelia instance to use. If a resource registry is not specified, Aurelia will create an empty registry.
0 commit comments