From 0bbb9e6258bd60a2676a475acc92b13b2c3425dc Mon Sep 17 00:00:00 2001 From: Pete Bacon Darwin Date: Sat, 26 Oct 2013 20:13:27 +0100 Subject: docs(error/compile/tplrt): split long lines --- docs/content/error/compile/tplrt.ngdoc | 17 ++++++++++++----- 1 file changed, 12 insertions(+), 5 deletions(-) (limited to 'docs/content/error') diff --git a/docs/content/error/compile/tplrt.ngdoc b/docs/content/error/compile/tplrt.ngdoc index 95a0cd65..d39c9a4f 100644 --- a/docs/content/error/compile/tplrt.ngdoc +++ b/docs/content/error/compile/tplrt.ngdoc @@ -3,13 +3,16 @@ @fullName Invalid Template Root @description -When a directive is declared with `template` (or `templateUrl`) and `replace` mode on, the template must have exactly one root element. -That is, the text of the template property or the content referenced by the templateUrl must be contained within a single html element. +When a directive is declared with `template` (or `templateUrl`) and `replace` mode on, the template +must have exactly one root element. That is, the text of the template property or the content +referenced by the templateUrl must be contained within a single html element. For example, '
blah blah blah
' instead of simply 'blah blah blah'. -Otherwise, the replacement operation would result in a single element (the directive) being replaced with multiple elements or nodes, which is unsupported and not commonly needed in practice. +Otherwise, the replacement operation would result in a single element (the directive) being replaced +with multiple elements or nodes, which is unsupported and not commonly needed in practice. For example a directive with definition: + ``` myModule.directive('myDirective', function factory() { return { @@ -21,12 +24,16 @@ myModule.directive('myDirective', function factory() { }); ``` -And a template provided at URL `someUrl`. The template must be an html fragment that has only a single root element, like the `div` element in this template: +And a template provided at URL `someUrl`. The template must be an html fragment that has only a +single root element, like the `div` element in this template: + ```