JSFiddle - React, Tailwind, and code Playground
Show/hide using Angular and strings
by eggleton
HTML
// method to change the show value of the Html page
$scope.changeShow = (panelToShow: string) => {
$scope.show = panelToShow;
};
ng-click="changeShow('billingSummary')"
CSS
// Typescript definitions
/** the name of the div to show */
// show: string;
/** shows the panel based of the Id of the div */
// changeShow: (panelToShow: string) => void;