Related Articles
HTTPCODE
<?phpnamespace App\Http;class HttpCode{/** HTTP Status Codes & their meaning* Source: https://en.wikipedia.org/wiki/List_of_HTTP_status_codes* By: Yentel Hollebeke – https://github.com/yentel* TODO: add remaining comments with code descriptions*//** Informational codes (1xx)*//*** 100 – Continue* The server has received the request headers and the client should proceed to send the request body* (in the case of a request for which a body needs […]
DATEPICKER
1. npm install ng2-datepicker –save 2. import in app.module.tsimport { NgDatepickerModule } from ‘ng2-datepicker’;imports: [NgDatepickerModule] 3. import nelow in component.tsimport { DatepickerOptions } from ‘ng2-datepicker’;import * as frLocale from ‘date-fns/locale/fr’; 4. Before constructore add below code:date:any=new Date(Date.now());options: DatepickerOptions = {minYear: 1970,maxYear: 2030,displayFormat: ‘MMM D[,] YYYY’,barTitleFormat: ‘MMMM YYYY’,dayNamesFormat: ‘dd’,firstCalendarDay: 0, // 0 – Sunday, 1 – […]
Hello world!
Welcome to WordPress. This is your first post. Edit or delete it, then start writing!