Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

ViewModel

import { ViewModel } from "https://raw.githubusercontent.com/mandarineorg/mandarinets/master/mod.ts";

This class serves as a modeler for templates. A modeler is used to make working with templates & its variables easier

class ViewModel {
private attributes: Map<string, any>;
 
public deleteAttribute(attribute: string): void;
public setAttribute(attribute: string, value: any): void;
public toObject(): object;
}

§Properties

§
attributes: Map<string, any>
[src]

§Methods

§
deleteAttribute(attribute: string): void
[src]
§
setAttribute(attribute: string, value: any): void
[src]
§
toObject(): object
[src]