ng2-datetimepicker-jalali
TypeScript icon, indicating that this package has built-in type declarations

1.0.3 • Public • Published

ng2-datetimepicker-jalali

persian date time picker, jalali for angular 2

تقویم فارسی برای انگولار 2 نمایش تارخ و ساعت

Demo

coming soon

آموزش فارسی

به زودی

Installation

To install this library, run:

$ npm install ng2-datetimepicker-jalali --save

Consuming your library

Once you have published your library to npm, you can import your library in any Angular application by running:

$ npm install ng2-datetimepicker-jalali

and then from your Angular AppModule:

import { BrowserModule } from '@angular/platform-browser';
import { NgModule } from '@angular/core';
 
import { AppComponent } from './app.component';
 
// Import library
import { DateTimePickerModule } from 'ng2-datetimepicker-jalali';
 
@NgModule({
  declarations: [
    AppComponent
  ],
  imports: [
    BrowserModule,
 
    // Specify library as an import
    DateTimePickerModule
  ],
  providers: [],
  bootstrap: [AppComponent]
})
export class AppModule { }

edit css styles.css

/*styles.css*/
@import '~bootstrap/dist/css/bootstrap.min.css';

you can use ng2-datetimepicker components, in your Angular application:

<!-- You can now use your library component in app.component.html -->
<h1>
  {{title}}
</h1>
<ng2-datetimepicker></sampleComponent>

Development

To generate all *.js, *.d.ts and *.metadata.json files:

$ npm run build

To lint all *.ts files:

$ npm run lint

License

MIT © Sajad Mehrabi

Package Sidebar

Install

npm i ng2-datetimepicker-jalali

Weekly Downloads

5

Version

1.0.3

License

MIT

Last publish

Collaborators

  • mehrabisajad