Skip to content

Instantly share code, notes, and snippets.

@dmastag
dmastag / home.ts
Last active September 18, 2019 06:21 — forked from andimariadi/home.ts
getToday
import {Component, ViewChild} from "@angular/core";
import {NavController, PopoverController} from "ionic-angular";
import { HttpClient } from "@angular/common/http";
import { HelperProvider } from '../../providers/helper/helper';
import { Storage } from "@ionic/storage";
@Component({
exports.list = function(req, res){
req.getConnection(async (err,connection) => {
var dropdownFisikJln = await connection.query ('SELECT * FROM dropdownlist');
var query = await connection.query ('SELECT * FROM kebinamargaan');
res.redirect('kebinamargaan',{
page_title:"Customers - Node.js",
data: {
dataDropDown: dropdownFisikJln,