Answers for "angular moment pipe timeAgo"

1

angular moment pipe timeAgo

Ref: https://github.com/urish/ngx-moment
Import MomentModule into your app's modules:

import { MomentModule } from 'ngx-moment';

@NgModule({
  imports: [
    MomentModule
  ]
})
If you would like to supply any NgxMomentOptions that will be made available to the pipes you can also use:

import { MomentModule } from 'ngx-moment';

@NgModule({
  imports: [
    MomentModule.forRoot({
      relativeTimeThresholdOptions: {
        'm': 59
      }
    })
  ]
})
Posted by: Guest on April-05-2020

Code answers related to "Javascript"

Browse Popular Code Answers by Language