Árvore de páginas

Para criar uma tela baseado no template de execução serão necessários a criação de alguns arquivos, segue um exemplo de cada arquivo e sua explicação.

ArquivoConteúdo
 totvs-html-framework-sample/html/execution/execution.htmlArquivo HTML da tela de execução.
 totvs-html-framework-sample/html/execution/execution.controller.jsArquivo JavaScript com o controller necessário para ser utilizado pela execução.
 totvs-html-framework-sample/html/execution/execution.service.jsArquivo JavaScript com o service (factory, service ou provider) para enviar os dados para o servidor.

 totvs-html-framework-sample/html/execution/execution.js

Arquivo JavaScript que o framework chama para inicializar os states das telas. (ver exemplo abaixo)

Para iniciar a tela de execução.

execution.js
/*global define */
define(['index',
        '/totvs-html-framework-sample/html/execution/execution.service.js',
        '/totvs-html-framework-sample/html/execution/execution.controller.js'], function (index) {
    'use strict';
    
    index.stateProvider
	
        .state('totvs-html-framework-sample/execution', {
            abstract: true,
            template: '<ui-view />'
        })
        .state('totvs-html-framework-sample/execution.start', {
            url: '/totvs-html-framework-sample/execution/',
            controller: 'totvs-html-framework-sample.execution.Control',
            controllerAs: 'controller',
            templateUrl: '/totvs-html-framework-sample/html/execution/execution.html'
        });
});