Get and set token values directly

You might need to access token values directly. This example shows how to get and set the value for a token called $mytoken$ in the default token model:

    // Access the "default" token model
    var tokens = mvc.Components.get("default");

    // Retrieve the value of a token $mytoken$
    var tokenValue = tokens.get("mytoken");

    // Change the value of a token $mytoken$
    tokens.set("mytoken", "this is the new value");