From fe004db7d5aede8c1027f696bdc8053b701cee78 Mon Sep 17 00:00:00 2001 From: Mads Rasmussen Date: Mon, 28 Dec 2015 14:22:57 +0100 Subject: [PATCH] added umbLoadIndicator documentation - first draft --- .../components/umbloadindicator.directive.js | 47 +++++++++++++++++++ 1 file changed, 47 insertions(+) diff --git a/src/Umbraco.Web.UI.Client/src/common/directives/components/umbloadindicator.directive.js b/src/Umbraco.Web.UI.Client/src/common/directives/components/umbloadindicator.directive.js index efa95f1fbd..f704a92f98 100644 --- a/src/Umbraco.Web.UI.Client/src/common/directives/components/umbloadindicator.directive.js +++ b/src/Umbraco.Web.UI.Client/src/common/directives/components/umbloadindicator.directive.js @@ -1,3 +1,50 @@ +/** +@ngdoc directive +@name umbraco.directives.directive:umbLoadIndicator +@restrict E + +@description +Use this directive to generate a loading indicator. + +

Markup example

+
+    
+ + + + +
+

{{content}}

+
+ +
+
+ +

Controller example

+
+    (function () {
+        "use strict";
+
+        function Controller(myService) {
+
+            var vm = this;
+
+            vm.content = "";
+            vm.loading = true;
+
+            myService.getContent().then(function(content){
+                vm.content = content;
+                vm.loading = false;
+            });
+
+        }
+
+        angular.module("umbraco").controller("Umbraco.Controller", Controller);
+    })();
+
+**/ + (function() { 'use strict';