Mostrar vista con loader

23-10-2019
``` let view = new admin.AdminView("padding") view.startSpinner() S.setView(view); ``` ![](/open/scl/uploads/N8cQnoCHbWgd33Dw3QbZ.png) El patrĂ³n completo: ``` S.addRoute("/admin/pos/map/:id", args => { let view = new admin.AdminView("padding") view.startSpinner() S.setView(view) S.getJson({ url: "/pos/loadMap.api", data: { id: args.id }, onSuccess: data => renderTableMap(data, view) }) }) function renderTableMap(m: TableMap, view: admin.AdminView) { view.stopSpinner() // implementation ... } ```
UI