Click here to Skip to main content
15,895,803 members

Welcome to the Lounge

   

For discussing anything related to a software developer's life but is not for programming questions. Got a programming question?

The Lounge is rated Safe For Work. If you're about to post something inappropriate for a shared office environment, then don't post it. No ads, no abuse, and no programming questions. Trolling, (political, climate, religious or whatever) will result in your account being removed.

 
GeneralRe: It's going downhill from here Pin
jschell1-Nov-17 12:11
jschell1-Nov-17 12:11 
GeneralRe: It's going downhill from here Pin
Daniel Pfeffer1-Nov-17 20:37
professionalDaniel Pfeffer1-Nov-17 20:37 
GeneralRe: It's going downhill from here Pin
Marc Clifton2-Nov-17 2:32
mvaMarc Clifton2-Nov-17 2:32 
GeneralRe: It's going downhill from here Pin
Jim_Snyder2-Nov-17 3:05
professionalJim_Snyder2-Nov-17 3:05 
GeneralRe: It's going downhill from here Pin
S Douglas2-Nov-17 10:01
professionalS Douglas2-Nov-17 10:01 
GeneralGoogle's new ad campaign Pin
ZurdoDev1-Nov-17 9:22
professionalZurdoDev1-Nov-17 9:22 
GeneralRe: Google's new ad campaign Pin
PIEBALDconsult1-Nov-17 9:37
mvePIEBALDconsult1-Nov-17 9:37 
GeneralSo the web is pretty advanced... Pin
Sander Rossel1-Nov-17 8:45
professionalSander Rossel1-Nov-17 8:45 
So highly advanced even that after 24 years of HTML and who knows how many versions and framework after framework and the second full installment of Angular that is developed and supported by one of the biggest tech companies in the world with the first major update A FRIGGIN DATE INPUT STILL DOESN'T WORK!!! Mad | :mad: WTF | :WTF: OMG | :OMG:

So I'm doing a simple web site using Angular 4.
The following just does not work.
HTML
<input type="date" [(ngModel)]="myDate" />
And in my TypeScript:
JavaScript
this.myDate = someInitialDate;
This is pretty basic stuff if you ask me WTF | :WTF:

I've been looking for a fix for over an hour, but I've come across sketchy solutions that seem to work until you enter some value manually.
It seems the only solution is to use some third party date input control.
If I knew how to import one using .NET Core, npm, WebPack, TypeScript and Angular imports...
Sounds easy, but it gets downloaded to node_modules/some_datepicker, but also needs node_modules/something_else, it's all in TypeScript, I need to move it using WebPack because node_modules isn't public, but WebPack makes bundles, so I'd lose my single file, which I need in the TypeScript import to register it in Angular... Sigh | :sigh:

I miss WinForms! Cry | :((

GeneralRe: So the web is pretty advanced... PinPopular
Nathan Minier1-Nov-17 8:58
professionalNathan Minier1-Nov-17 8:58 
GeneralRe: So the web is pretty advanced... Pin
Sander Rossel2-Nov-17 6:59
professionalSander Rossel2-Nov-17 6:59 
GeneralRe: So the web is pretty advanced... Pin
Nathan Minier2-Nov-17 9:36
professionalNathan Minier2-Nov-17 9:36 
GeneralRe: So the web is pretty advanced... Pin
Jeremy Falcon7-Nov-17 5:36
professionalJeremy Falcon7-Nov-17 5:36 
AnswerRe: So the web is pretty advanced... Pin
Super Lloyd1-Nov-17 9:11
Super Lloyd1-Nov-17 9:11 
JokeRe: So the web is pretty advanced... PinPopular
Paulo_JCG1-Nov-17 22:54
professionalPaulo_JCG1-Nov-17 22:54 
GeneralRe: So the web is pretty advanced... Pin
Sander Rossel2-Nov-17 7:01
professionalSander Rossel2-Nov-17 7:01 
GeneralRe: So the web is pretty advanced... Pin
Super Lloyd2-Nov-17 8:51
Super Lloyd2-Nov-17 8:51 
GeneralRe: So the web is pretty advanced... Pin
Sander Rossel2-Nov-17 9:15
professionalSander Rossel2-Nov-17 9:15 
GeneralRe: So the web is pretty advanced... Pin
Super Lloyd2-Nov-17 12:30
Super Lloyd2-Nov-17 12:30 
GeneralRe: So the web is pretty advanced... Pin
A_Griffin1-Nov-17 9:19
A_Griffin1-Nov-17 9:19 
GeneralRe: So the web is pretty advanced... Pin
Sander Rossel2-Nov-17 7:02
professionalSander Rossel2-Nov-17 7:02 
GeneralRe: So the web is pretty advanced... Pin
PIEBALDconsult1-Nov-17 9:52
mvePIEBALDconsult1-Nov-17 9:52 
GeneralRe: So the web is pretty advanced... Pin
raddevus1-Nov-17 10:24
mvaraddevus1-Nov-17 10:24 
GeneralRe: So the web is pretty advanced... Pin
PIEBALDconsult1-Nov-17 11:47
mvePIEBALDconsult1-Nov-17 11:47 
GeneralRe: So the web is pretty advanced... Pin
raddevus1-Nov-17 12:49
mvaraddevus1-Nov-17 12:49 
GeneralRe: So the web is pretty advanced... Pin
Graeme_Grant1-Nov-17 14:23
mvaGraeme_Grant1-Nov-17 14:23 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.