Retrieves or sets an object saved in application context
The $ plugin function is a static function on the jQuery namespace that provides a concise method of loading application managed components, or saving them. All though it's not going to be clear how powerful this little method is from these simple examples, we'll see later how using scanners in $.config will tremendously simplify our development process, provide us with pre-wired mvc patterns, as well as allow us to lazily create application components only when they are used.
Arguments:
| id | String | |
|---|---|---|
| The unique application scope id of the object to retrieve or set. | ||
| obj (Optional) | Object | |
| The object that will be saved in application scope with the given id. | ||
{{APIExamples|
