import { AtomViewModel } from "web-atoms-core/dist/view-model/AtomViewModel"; import { IMovie, IPagedList } from "../../services/http/simple/MovieService"; export default class ItemsControlViewModel extends AtomViewModel { movies: IPagedList; /** * In following example, MovieService which is registered as DISingleton * will be injected in this view model. * * Keyword `private` makes it a field of class. */ private movieService; /** * You must initialize your model by calling web services in init method */ init(): Promise; }