Upgrade to angularjs 1.2.0 rc1
This commit is contained in:
parent
d223dfd662
commit
d6b021bfaf
674 changed files with 79667 additions and 62269 deletions
36
lib/angular/docs/partials/api/ng.directive:ngTransclude.html
Normal file → Executable file
36
lib/angular/docs/partials/api/ng.directive:ngTransclude.html
Normal file → Executable file
|
@ -1,9 +1,11 @@
|
|||
<h1><code ng:non-bindable="">ngTransclude</code>
|
||||
<span class="hint">(directive in module <code ng:non-bindable="">ng</code>
|
||||
)</span>
|
||||
<a href="http://github.com/angular/angular.js/tree/v1.2.0rc1/src/ng/directive/ngTransclude.js#L3" class="view-source btn btn-action"><i class="icon-zoom-in"> </i> View source</a><a href="http://github.com/angular/angular.js/edit/master/src/ng/directive/ngTransclude.js" class="improve-docs btn btn-primary"><i class="icon-edit"> </i> Improve this doc</a><h1><code ng:non-bindable="">ngTransclude</code>
|
||||
<div><span class="hint">directive in module <code ng:non-bindable="">ng</code>
|
||||
</span>
|
||||
</div>
|
||||
</h1>
|
||||
<div><a href="http://github.com/angular/angular.js/edit/master/src/ng/directive/ngTransclude.js" class="improve-docs btn btn-primary">Improve this doc</a><h2 id="Description">Description</h2>
|
||||
<div class="description"><p>Insert the transcluded DOM here.</p></div>
|
||||
<div><h2 id="Description">Description</h2>
|
||||
<div class="description"><div class="ng-directive-page ng-directive-ngtransclude-page"><p>Insert the transcluded DOM here.</p>
|
||||
</div></div>
|
||||
<h2 id="Usage">Usage</h2>
|
||||
<div class="usage">as attribute<pre class="prettyprint linenums"><ANY ng-transclude>
|
||||
...
|
||||
|
@ -13,11 +15,11 @@ as class<pre class="prettyprint linenums"><ANY class="ng-transclude">
|
|||
</ANY></pre>
|
||||
</div>
|
||||
<h2 id="Example">Example</h2>
|
||||
<div class="example"><h4>Source</h4>
|
||||
<div source-edit="transclude" source-edit-deps="angular.js script.js" source-edit-html="index.html-182" source-edit-css="" source-edit-js="script.js-181" source-edit-unit="" source-edit-scenario="scenario.js-183"></div>
|
||||
<div class="example"><div class="ng-directive-page ng-directive-ngtransclude-page"><h4>Source</h2>
|
||||
<div source-edit="transclude" source-edit-deps="angular.js script.js" source-edit-html="index.html-101" source-edit-css="" source-edit-js="script.js-100" source-edit-json="" source-edit-unit="" source-edit-scenario="scenario.js-102"></div>
|
||||
<div class="tabbable"><div class="tab-pane" title="index.html">
|
||||
<pre class="prettyprint linenums" ng-set-text="index.html-182" ng-html-wrap="transclude angular.js script.js"></pre>
|
||||
<script type="text/ng-template" id="index.html-182">
|
||||
<pre class="prettyprint linenums" ng-set-text="index.html-101" ng-html-wrap="transclude angular.js script.js"></pre>
|
||||
<script type="text/ng-template" id="index.html-101">
|
||||
|
||||
<div ng-controller="Ctrl">
|
||||
<input ng-model="title"><br>
|
||||
|
@ -27,8 +29,8 @@ as class<pre class="prettyprint linenums"><ANY class="ng-transclude">
|
|||
</script>
|
||||
</div>
|
||||
<div class="tab-pane" title="script.js">
|
||||
<pre class="prettyprint linenums" ng-set-text="script.js-181"></pre>
|
||||
<script type="text/ng-template" id="script.js-181">
|
||||
<pre class="prettyprint linenums" ng-set-text="script.js-100"></pre>
|
||||
<script type="text/ng-template" id="script.js-100">
|
||||
function Ctrl($scope) {
|
||||
$scope.title = 'Lorem Ipsum';
|
||||
$scope.text = 'Neque porro quisquam est qui dolorem ipsum quia dolor...';
|
||||
|
@ -39,8 +41,7 @@ as class<pre class="prettyprint linenums"><ANY class="ng-transclude">
|
|||
return {
|
||||
restrict: 'E',
|
||||
transclude: true,
|
||||
scope: 'isolate',
|
||||
locals: { title:'bind' },
|
||||
scope: { title:'@' },
|
||||
template: '<div style="border: 1px solid black;">' +
|
||||
'<div style="background-color: gray">{{title}}</div>' +
|
||||
'<div ng-transclude></div>' +
|
||||
|
@ -50,8 +51,8 @@ as class<pre class="prettyprint linenums"><ANY class="ng-transclude">
|
|||
</script>
|
||||
</div>
|
||||
<div class="tab-pane" title="End to end test">
|
||||
<pre class="prettyprint linenums" ng-set-text="scenario.js-183"></pre>
|
||||
<script type="text/ng-template" id="scenario.js-183">
|
||||
<pre class="prettyprint linenums" ng-set-text="scenario.js-102"></pre>
|
||||
<script type="text/ng-template" id="scenario.js-102">
|
||||
it('should have transcluded', function() {
|
||||
input('title').enter('TITLE');
|
||||
input('text').enter('TEXT');
|
||||
|
@ -60,6 +61,7 @@ as class<pre class="prettyprint linenums"><ANY class="ng-transclude">
|
|||
});
|
||||
</script>
|
||||
</div>
|
||||
</div><h4>Demo</h4>
|
||||
<div class="well doc-example-live animator-container" ng-embed-app="transclude" ng-set-html="index.html-182" ng-eval-javascript="script.js-181"></div></div>
|
||||
</div><h2>Demo</h4>
|
||||
<div class="well doc-example-live animate-container" ng-embed-app="transclude" ng-set-html="index.html-101" ng-eval-javascript="script.js-100"></div>
|
||||
</div></div>
|
||||
</div>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue