@@ -968,21 +968,20 @@ function $CompileProvider($provide, $$sanitizeUriProvider) {
968
968
* See {@link ng.$compile#-bindtocontroller- `bindToController`}.
969
969
* - `transclude` – `{boolean=}` – whether {@link $compile#transclusion content transclusion} is enabled.
970
970
* Disabled by default.
971
- * - `restrict` - `{string=}` - a string containing one or more characters from {@link ng.$compile#-restrict- EACM},
972
- * which restricts the component to specific directive declaration style. If omitted, this defaults to 'E'.
973
971
* - `$canActivate` – `{function()=}` – TBD.
974
972
* - `$routeConfig` – `{object=}` – TBD.
975
973
*
976
974
* @returns {ng.$compileProvider } the compile provider itself, for chaining of function calls.
977
975
* @description
978
- * Register a **Component definition** with the compiler. This is a shorthand for registering a special
979
- * type of directive, which represents a self-contained UI component in your application.
976
+ * Register a **component definition** with the compiler. This is a shorthand for registering a special
977
+ * type of directive, which represents a self-contained UI component in your application. Such components
978
+ * are always isolated (i.e. `scope: {}`) and are always restricted to elements (i.e. `restrict: 'E'`).
980
979
*
981
- * Component definitions are very simple and do not require much of the complexity behind defining general
980
+ * Component definitions are very simple and do not require as much configuration as defining general
982
981
* directives. Component definitions usually consist only of a template and a controller backing it.
983
982
*
984
983
* In order to make the definition easier, components enforce best practices like use of `controllerAs`,
985
- * `bindToController`, **isolate scope** and default behaviors like restriction to elements.
984
+ * `bindToController`. They always have **isolate scope** and are restricted to elements.
986
985
*
987
986
* Here are a few examples of how you would usually define components:
988
987
*
@@ -1077,7 +1076,7 @@ function $CompileProvider($provide, $$sanitizeUriProvider) {
1077
1076
transclude : options . transclude ,
1078
1077
scope : { } ,
1079
1078
bindToController : options . bindings || { } ,
1080
- restrict : options . restrict || 'E'
1079
+ restrict : 'E'
1081
1080
} ;
1082
1081
}
1083
1082
0 commit comments