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 […]
TEMPLATE SETUP IN ANGULAR
1. Create an Angular App using angular CLIng new angular-templat 2. copy all the files and folder and paste it in the src > assets folder expect the HTML file. 3. Then include your all css files into the angular.json file like this ex.“styles”: [ “src/styles.css”, “src/assets/css/custom.css”, “src/assets/vendor/bootstrap/css/bootstrap.min.css”, “src/assets/vendor/font-awesome/css/font-awesome.min.css”, “src/assets/css/fontastic.css”, “src/assets/css/grasp_mobile_progress_circle-1.0.0.min.css”, “src/assets/vendor/malihu-custom-scrollbar-plugin/jquery.mCustomScrollbar.css”, “src/assets/css/style.default.css” ], 4. […]
GET QUERY STRING PARAMETERS
1. add this line in ts file:import {Router, ActivatedRoute, Params} from ‘@angular/router’; 2. add below line in constructor:constructor(private activatedRoute: ActivatedRoute) {} 3. in ndOnInit(){} put below code:ngOnInit() {// Note: Below ‘queryParams’ can be replaced with ‘params’ depending on your requirementsthis.activatedRoute.queryParams.subscribe(params => {const token = params[‘token’];console.log(token);});}