December 2016
Intermediate to advanced
841 pages
17h
English
Let's create a new file named nasdaq_model.ts under the app/models directory. We can then import the Model, AppEvent, and ModelSettings from our framework and declare a new class named NasdaqModel. The new class must extend the base Model class and implement the IModel interface.
We will also use the ModelSettings decorator to indicate the path of a web service or static data file. In this case, we will use a static data file, which can be found in the companion source code:
/// <reference path="../../framework/interfaces"/> import { Model, AppEvent, ModelSettings } from "../../framework/framework"; @ModelSettings("./data/nasdaq.json") class NasdaqModel extends Model implements IModel { constructor(metiator : IMediator) ...Read now
Unlock full access