These are chat archives for filearts/plunker

6th
Sep 2017
gpetruzzi
@gpetruzzi
Sep 06 2017 00:40
hola
henryoh007
@henryoh007
Sep 06 2017 03:11
Angular works well on most OS did you set up a development environment and if so what do you have setup ?
gauloics
@gauloics
Sep 06 2017 08:02
hi anyone online here?
gauloics
@gauloics
Sep 06 2017 08:36

how to convert this javascript to angular, sorry i'm newbie

var d = document.getElementById("dc");
var
m = document.getElementById("mc");
var y = document.getElementById("yc");
var
result = document.getElementById("resultc");
var btresult = document.getElementById("clickc");

btresult.addEventListener("click", function() {
var someEvent = new Date(y.value, m.selectedIndex, d.value); result.innerHTML = "this " + findD(someEvent) + " ";
});

function findD(_fd) {
_x = _fd.getDay();

switch(_x) {
case 0:
return "Sunday";
case 1:
return "Monday";
case 2:
return "Tuesday";
case 3:
return "Wednesday";
case 4:
return "Thursday";
case 5:
return "Friday";
case 6:
return "Saturday";
default:
return "";
}
}