ANGULAR get datetime angular - Net-Raft.com

Welcome aboard! We are happy you are here and wish you good net-raft!




Just a Web Code Solution
join us

get datetime with angular


 74

ANGULAR


1

// put into app.component.ts

import { Component, OnInit } from '@angular/core';
import { MyserviceService } from './../myservice.service';

@Component({
selector: 'app-new-cmp',
templateUrl: './new-cmp.component.html',
styleUrls: ['./new-cmp.component.css']
})

export class NewCmpComponent implements OnInit {
todaydate;
newcomponent = "your new component";
constructor(private myservice: MyserviceService) {}

ngOnInit() {
this.todaydate = this.myservice.showTodayDate();
}
}

// put into app.component.html

<p>
{{newcomponent}}
</p>
<p>
Date : {{todaydate}}
</p>


By        
The power of the user (%)
19%



The most helpful ANGULAR solutions

get computer name angular2get computer name angular2ANGULAR

Click to see more ...

  6.1K     56

get ip address angularget ip address angularANGULAR

Click to see more ...

  1.1K     51

get hostname using angularget hostname using angularANGULAR

Click to see more ...

  1.1K     47

get latitude and longitude from ip address angular2get latitude and longitude from ip address angular2ANGULAR

Click to see more ...

  629     33

fill dropdown in angularfill dropdown in angularANGULAR

Click to see more ...

  423     29

get body width and height angularget body width and height angularANGULAR

Click to see more ...

  1.3K     29

get client ip address angularget client ip address angularANGULAR

Click to see more ...

  441     22

get current url with angular6get current url with angular6ANGULAR

Click to see more ...

  411     23

get ip address angular2get ip address angular2ANGULAR

Click to see more ...

  447     19

get current url using angularget current url using angularANGULAR

Click to see more ...

  286     17

Welcome aboard!
We are happy you are here and
wish you good net-raft!