December 2016
Intermediate to advanced
841 pages
17h
English
Let's create a new file named market_view.ts under the app/views directory. We can then import the AppEvent, ViewSettings, and Route components from our framework and declare a new class named MarketView. The new class must extend the base View class and implement the IView interface.
We will also use the ViewSettings decorator to indicate the path, a Handlebars template, and a selector, which is used to find the DOM element that will be used as the parent node of the view's HTML:
/// <reference path="../../framework/interfaces"/> import { View, AppEvent,ViewSettings, Route } from "../../framework/framework"; @ViewSettings("./source/app/templates/market.hbs", "#outlet") class MarketView extends View implements IView ...Read now
Unlock full access