JSFiddle - React, Tailwind, and code Playground

JavaScript

function ($stateProvider, $urlRouterProvider, $locationProvider) {
    $urlRouterProvider.otherwise('otherwise');

    $stateProvider.state('index', {
        url: '/',
        templateUrl: '/src/scripts/ng/views/pages/index.html',
        controller: 'index'
    }).state('yoba', {
        url: '/yoba/:cardId',
        templateUrl: '/src/scripts/ng/views/pages/yoba.html',
    }).state('otherwise', {
        url: '*path',
        templateUrl: '/src/scripts/ng/views/pages/e404.html'
    });

    $locationProvider.html5Mode(true);
};