From c27a56f4da9bf89e471ac6597c135e2f19814f17 Mon Sep 17 00:00:00 2001
From: Misko Hevery
Date: Wed, 22 Feb 2012 12:59:23 -0800
Subject: docs(scope): show which directives create scopes
---
src/directives.js | 1 +
src/widget/form.js | 3 ++-
src/widgets.js | 7 ++++++-
3 files changed, 9 insertions(+), 2 deletions(-)
(limited to 'src')
diff --git a/src/directives.js b/src/directives.js
index 1f70d912..67c9f1f6 100644
--- a/src/directives.js
+++ b/src/directives.js
@@ -55,6 +55,7 @@ var ngInitDirective = valueFn({
* service.
*
* @element ANY
+ * @scope
* @param {expression} expression Name of a globally accessible constructor function or an
* {@link guide/dev_guide.expressions expression} that on the current scope evaluates to a
* constructor function.
diff --git a/src/widget/form.js b/src/widget/form.js
index 552cc4e5..deaf38d5 100644
--- a/src/widget/form.js
+++ b/src/widget/form.js
@@ -1,9 +1,10 @@
'use strict';
/**
- * @ngdoc widget
+ * @ngdoc directive
* @name angular.module.ng.$compileProvider.directive.form
*
+ * @scope
* @description
* Angular widget that creates a form scope using the
* {@link angular.module.ng.$formFactory $formFactory} API. The resulting form scope instance is
diff --git a/src/widgets.js b/src/widgets.js
index cd282746..84982dc6 100644
--- a/src/widgets.js
+++ b/src/widgets.js
@@ -10,6 +10,8 @@
* Keep in mind that Same Origin Policy applies to included resources
* (e.g. ng:include won't work for file:// access).
*
+ * @scope
+ *
* @param {string} src angular expression evaluating to URL. If the source is a string constant,
* make sure you wrap it in quotes, e.g. `src="'myPartialTemplate.html'"`.
* @param {Scope=} [scope=new_child_scope] optional expression which evaluates to an
@@ -130,6 +132,7 @@ var ngIncludeDirective = ['$http', '$templateCache', '$anchorScroll', '$compile'
* ...
* ...
*
+ * @scope
* @param {*} on expression to match against ng:switch-when.
* @paramDescription
* On child elments add:
@@ -254,7 +257,7 @@ var htmlAnchorDirective = valueFn({
/**
- * @ngdoc widget
+ * @ngdoc directive
* @name angular.module.ng.$compileProvider.directive.ng:repeat
*
* @description
@@ -273,6 +276,8 @@ var htmlAnchorDirective = valueFn({
* Note: Although `ng:repeat` looks like a directive, it is actually an attribute widget.
*
* @element ANY
+ * @scope
+ * @priority 1000
* @param {string} repeat_expression The expression indicating how to enumerate a collection. Two
* formats are currently supported:
*
--
cgit v1.2.3