This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| $date_now = date('Y-m-d H:i:s'); | |
| $time_now = strtotime($date_now); | |
| $args = array( | |
| 'posts_per_page' => -1, | |
| 'post_type' => 'event', | |
| 'meta_query' => array( | |
| array( |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import { HttpClient } from '@angular/common/http'; | |
| import { Component } from '@angular/core'; | |
| @Component({ | |
| selector: 'posts', | |
| templateUrl: './posts.component.html', | |
| styleUrls: ['./posts.component.scss'] | |
| }) | |
| export class PostsComponent { | |
| posts: any; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import { HttpClient } from '@angular/common/http'; | |
| import { Component } from '@angular/core'; | |
| @Component({ | |
| selector: 'posts', | |
| templateUrl: './posts.component.html', | |
| styleUrls: ['./posts.component.scss'] | |
| }) | |
| export class PostsComponent { | |
| posts: any; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import { HttpClient } from '@angular/common/http'; | |
| import { Component } from '@angular/core'; | |
| @Component({ | |
| selector: 'posts', | |
| templateUrl: './posts.component.html', | |
| styleUrls: ['./posts.component.scss'] | |
| }) | |
| export class PostsComponent { | |
| posts: any; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import { HttpClient } from '@angular/common/http'; | |
| import { Component } from '@angular/core'; | |
| @Component({ | |
| selector: 'posts', | |
| templateUrl: './posts.component.html', | |
| styleUrls: ['./posts.component.scss'] | |
| }) | |
| export class PostsComponent { | |
| posts: any[]; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <h2>Leave a comment</h2> | |
| <form #f="ngForm" (ngSubmit)="submit(f)"> | |
| <div ngModelGroup="contact" #contact="ngModelGroup"> | |
| <div *ngIf="!contact.valid">...</div> | |
| <div class="form-group"> | |
| <label for="firstName">First Name</label> | |
| <input | |
| required | |
| minlength="3" | |
| maxlength="10" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import { Component } from '@angular/core'; | |
| @Component({ | |
| selector: 'course-form', | |
| templateUrl: './course-form.component.html', | |
| styleUrls: ['./course-form.component.scss'] | |
| }) | |
| export class CourseFormComponent { | |
| categories = [ | |
| { id: 1, name: 'Development'}, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <form #f="ngForm" (ngSubmit)="submit(f)"> | |
| <div ngModelGroup="contact" #contact="ngModelGroup"> | |
| <div class="form-group"> | |
| <label for="courseName">Course Name</label> | |
| <input | |
| required | |
| minlength="5" | |
| maxlength="10" | |
| ngModel | |
| name="courseName" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <h2>Leave a comment</h2> | |
| <form #f="ngForm" (ngSubmit)="submit(f)"> | |
| <div ngModelGroup="contact" #contact="ngModelGroup"> | |
| <div *ngIf="!contact.valid">...</div> | |
| <div class="form-group"> | |
| <label for="firstName">First Name</label> | |
| <input | |
| required | |
| minlength="3" | |
| maxlength="10" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <h2>Leave a comment</h2> | |
| <form #f="ngForm" (ngSubmit)="submit(f)"> | |
| <div ngModelGroup="contact" #contact="ngModelGroup"> | |
| <div *ngIf="!contact.valid">...</div> | |
| <div class="form-group"> | |
| <label for="firstName">First Name</label> | |
| <input | |
| required | |
| minlength="3" | |
| maxlength="10" |