You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/displaysystem/back-end-angular.md
+13-16Lines changed: 13 additions & 16 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -19,15 +19,17 @@ limitations under the License.
19
19
-->
20
20
{% include JB/setup %}
21
21
22
+
# Back-end Angular API in Apache Zeppelin
22
23
23
-
## Back-end Angular API in Zeppelin
24
+
<divid="toc"></div>
24
25
25
-
Angular display system treats output as a view template for [AngularJS](https://angularjs.org/).
26
-
It compiles templates and displays them inside of Zeppelin.
26
+
## Overview
27
27
28
-
Zeppelin provides a gateway between your interpreter and your compiled **AngularJS view** templates.
28
+
Angular display system treats output as a view template for [AngularJS](https://angularjs.org/).
29
+
It compiles templates and displays them inside of Apache Zeppelin. Zeppelin provides a gateway between your interpreter and your compiled **AngularJS view** templates.
29
30
Therefore, you can not only update scope variables from your interpreter but also watch them in the interpreter, which is JVM process.
30
31
32
+
## Basic Usage
31
33
### Print AngularJS view
32
34
33
35
To use angular display system, you should start with `%angular`.
@@ -94,30 +96,25 @@ When the button is clicked, you'll see both `run` and `numWatched` are increment
94
96
## Let's make it Simpler and more Intuitive
95
97
In this section, we will introduce a simpler and more intuitive way of using **Angular Display System** in Zeppelin.
Copy file name to clipboardExpand all lines: docs/displaysystem/front-end-angular.md
+13-12Lines changed: 13 additions & 12 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -19,18 +19,18 @@ limitations under the License.
19
19
-->
20
20
{% include JB/setup %}
21
21
22
+
# Front-end Angular API in Apache Zeppelin
22
23
23
-
## Front-end Angular API in Zeppelin
24
+
<divid="toc"></div>
24
25
25
-
In addition to the back-end API to handle Angular objects binding, Zeppelin also exposes a simple AngularJS **`z`** object on the front-end side to expose the same capabilities.
26
+
## Basic Usage
27
+
In addition to the [back-end API](./back-end-angular.html) to handle Angular objects binding, Apache Zeppelin also exposes a simple AngularJS <code>**z**</code> object on the front-end side to expose the same capabilities.
28
+
This <code>**z**</code> object is accessible in the Angular isolated scope for each paragraph.
26
29
27
-
This **`z`** object is accessible in the Angular isolated scope for each paragraph.
28
30
29
-
<br />
30
31
### Bind / Unbind Variables
31
32
32
-
Through the **`z`**, you can bind / unbind variables to **AngularJS view**
33
-
33
+
Through the **`z`**, you can bind / unbind variables to **AngularJS view**.
34
34
Bind a value to an angular object and a **mandatory** target paragraph:
35
35
36
36
```html
@@ -68,9 +68,10 @@ Unbind/remove a value from angular object and a **mandatory** target paragraph:
68
68
The signature for the **`z.angularBind() / z.angularUnbind()`** functions are:
The front-end Angular Interaction API has been designed to offer richer form capabilities and variable binding. With the existing **Dynamic Form** system you can already create input text, select and checkbox forms but the choice is rather limited and the look & feel cannot be changed.
106
107
107
108
The idea is to create a custom form using plain HTML/AngularJS code and bind actions on this form to push/remove Angular variables to targeted paragraphs using this new API.
108
109
109
-
Consequently if you use the **Dynamic Form** syntax in a paragraph and there is a bound Angular object having the same name as the _${formName}_, the Angular object will have higher priority and the **Dynamic Form** will not be displayed. Example:
110
+
Consequently if you use the **Dynamic Form** syntax in a paragraph and there is a bound Angular object having the same name as the `${formName}`, the Angular object will have higher priority and the **Dynamic Form** will not be displayed. Example:
0 commit comments