Restructuring GUI code - implementing view life-cycles.
Using sample views for now.
Still WIP.
diff --git a/web/gui/src/main/webapp/topo2.js b/web/gui/src/main/webapp/topo2.js
index b249c09..8d1f9c1 100644
--- a/web/gui/src/main/webapp/topo2.js
+++ b/web/gui/src/main/webapp/topo2.js
@@ -23,9 +23,6 @@
(function (onos) {
'use strict';
- // reference to the framework api
- var api = onos.api;
-
// configuration data
var config = {
useLiveData: true,
@@ -1213,7 +1210,7 @@
// ======================================================================
// register with the UI framework
- api.addView('network', {
+ onos.ui.addView('topo', {
load: loadNetworkView
});