You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@zeppelin.apache.org by "Jeff Zhang (JIRA)" <ji...@apache.org> on 2017/04/05 06:31:42 UTC
[jira] [Created] (ZEPPELIN-2356) z.angularBind should remove the
existing AngularObject
Jeff Zhang created ZEPPELIN-2356:
------------------------------------
Summary: z.angularBind should remove the existing AngularObject
Key: ZEPPELIN-2356
URL: https://issues.apache.org/jira/browse/ZEPPELIN-2356
Project: Zeppelin
Issue Type: Bug
Affects Versions: 0.7.1
Reporter: Jeff Zhang
Assignee: Jeff Zhang
There're 2 issues in the current angular object usage in ZeppelinContext.
* z.angularBind would set a new value if the angularObject is existed, otherwise the registered watched will be called which might not be user expect
* z.angularWatch would register multiple watcher if the angularObject is existed, this also might not what user expect.
The above 2 issues means that either user have to run the paragraph only once, or they have to call angularUnbind before calling angularBind.
I have a suggestion that we could remove the existing AngularObject and create a new one in z.angularBind, and create new method angularSet for setting new value for AngularObject. [~moon] [~jongyoul]
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)