diff options
| author | Igor Minar | 2014-02-18 03:04:42 -0800 | 
|---|---|---|
| committer | Igor Minar | 2014-02-18 10:44:48 -0800 | 
| commit | 481508d0e7ae9e4984ea380b9a43e589551c7a5b (patch) | |
| tree | 2df21cbd83152c5e504cdc7f3b579b25bdc9fadb /src/ng/cacheFactory.js | |
| parent | 12e4d3ac4da3e7ea8d9be49764dbbc091a345bf7 (diff) | |
| download | angular.js-481508d0e7ae9e4984ea380b9a43e589551c7a5b.tar.bz2 | |
style: remove ws and enfore no-trailing-ws jscs rule
Diffstat (limited to 'src/ng/cacheFactory.js')
| -rw-r--r-- | src/ng/cacheFactory.js | 22 | 
1 files changed, 11 insertions, 11 deletions
| diff --git a/src/ng/cacheFactory.js b/src/ng/cacheFactory.js index 9371ca58..ea0195f6 100644 --- a/src/ng/cacheFactory.js +++ b/src/ng/cacheFactory.js @@ -6,9 +6,9 @@   *   * @description   * Factory that constructs cache objects and gives access to them. - *  + *   * ```js - *  + *   *  var cache = $cacheFactory('cacheId');   *  expect($cacheFactory.get('cacheId')).toBe(cache);   *  expect($cacheFactory.get('noSuchCacheId')).not.toBeDefined(); @@ -17,8 +17,8 @@   *  cache.put("another key", "another value");   *   *  // We've specified no options on creation - *  expect(cache.info()).toEqual({id: 'cacheId', size: 2});  - *  + *  expect(cache.info()).toEqual({id: 'cacheId', size: 2}); + *   * ```   *   * @@ -199,7 +199,7 @@ function $CacheFactoryProvider() {   * The first time a template is used, it is loaded in the template cache for quick retrieval. You   * can load templates directly into the cache in a `script` tag, or by consuming the   * `$templateCache` service directly. - *  + *   * Adding via the `script` tag:   * ```html   * <html ng-app> @@ -211,29 +211,29 @@ function $CacheFactoryProvider() {   *   ...   * </html>   * ``` - *  + *   * **Note:** the `script` tag containing the template does not need to be included in the `head` of   * the document, but it must be below the `ng-app` definition. - *  + *   * Adding via the $templateCache service: - *  + *   * ```js   * var myApp = angular.module('myApp', []);   * myApp.run(function($templateCache) {   *   $templateCache.put('templateId.html', 'This is the content of the template');   * });   * ``` - *  + *   * To retrieve the template later, simply use it in your HTML:   * ```html   * <div ng-include=" 'templateId.html' "></div>   * ``` - *  + *   * or get it via Javascript:   * ```js   * $templateCache.get('templateId.html')   * ``` - *  + *   * See {@link ng.$cacheFactory $cacheFactory}.   *   */ | 
