SHARE
TWEET

Untitled

a guest Jun 20th, 2019 58 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <div style="text-align:center">
  2.   <input  type="date" [(ngModel)]="name" value="name">
  3.   <p>Value: {{ name }}</p>
  4. </div>
  5.      
  6. import { Component } from "@angular/core";
  7.  
  8. @Component({
  9.   selector: "app-root",
  10.   templateUrl: "./app.component.html",
  11.   styleUrls: ["./app.component.css"]
  12. })
  13. export class AppComponent {
  14.   name: string = '2019-01-01T23-00-11';
  15.   //name: string = '2019-01-01';
  16.   ngOnInit() {
  17.  
  18.   }
  19.  
  20. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top