Issue How can I host the published result of this simple tutorial in IIS? Is there guidance on how best to accomplish this? The solution contains an ASP.NET Core Web API project (backend) and an Angular project (front-end). It works
Continue readingTag: angular
[SOLVED] Can Vue import components by dependency inject(DI) like angular?
Issue I used angularjs(1.x) and new to Vue.There has DI in angular and refer a service in controller or a directive in template is easy, wherever the service or directive is. Angular will help you inject it automatically. But I
Continue reading[SOLVED] Display only shows last value of an Angular for loop even though devtools HTML has correct values
Issue I’m using a for loop to display different sections of my blog for editing purposes. import { Component, OnInit } from ‘@angular/core’; import { ActivatedRoute, Route, ParamMap } from ‘@angular/router’; import { HttpClient } from ‘@angular/common/http’; import { Content
Continue reading[SOLVED] How to filter an array and get the values by recent month in Angular?
Issue I have an array: var array = [{ “date”: “2022-09-08T04:00:00.000Z”, “value”: “1.70”, }, { “date”: “2022-08-24T04:00:00.000Z”, “value”: “1.20”, }, { “date”: “2022-08-02T04:00:00.000Z”, “value”: “0.03”, }, { “date”: “2022-04-15T04:00:00.000Z”, “value”: “1.20”, }, { “date”: “2022-04-10T04:00:00.000Z”, “value”: “1.32”, }, { “date”:
Continue reading[SOLVED] Angular – array forEach index
Issue How to identify the index for the forEach loop in the Angular4 code. I need to splice the record inside the foreach based on the condition. angular.forEach(myObject => { if(!myObject.Name) myObject.splice(…, 1) }; Here I want to delete the
Continue reading[SOLVED] Angular reactive form not submitting selected option values
Issue I have the following form dinamically populated with multiple select inputs <form [formGroup]=”searchForm” (ngSubmit)=”onSubmit(searchForm.value)”> <div class=”col-md-2″ *ngFor=”let filter of this.filters; index as i”> <div class=”form-group”> <select formArrayName=”filters” size=”5″ class=”form-control” (change)=”onSelectChange($event)”> <option [ngValue]=”null” value=”-1″ disabled class=”first-option-item”>{{ filter.name }}</option> <option *ngFor=”let
Continue reading[SOLVED] How to pass my API key in correctly with Angular 14 and SwaggerUI ASp.netCore 6 Web API
Issue This is a silly question but I dont know how to check to see, Im unsure how to pass my API key when making calls to the API I made in .Net 6 CWA Im currently hosting the Web
Continue reading[SOLVED] How to check if email existe in database using laravel and angular REST API
Issue I have created an API using laravel to check if an email existed in database or not. /** * * @param string $email */ public function checkUserEmail($email) { $userCount = User::where(’email’, $email); if($userCount->count()){ return response()->json("true"); }else{ return response()->json("false"); }
Continue reading[SOLVED] error TS2339: Property 'value' does not exist on type 'Object'
Issue First time posting, so I hope I’m doing it right. I have searched around for a far bit, but can’t seem to find a solution to my problem. I have the following code; const GRAPH_CALENDAR= ‘https://graph.microsoft.com/v1.0/me/calendar/events’; getAfspraak() { this.http.get(GRAPH_CALENDAR).subscribe(
Continue reading[SOLVED] Downloading API text/text with Angular 14. Error thrown when supplying reponse-type
Issue I have a dotnet WebAPI what returns a Task<IActionResult> returning OK(data) – data a is string which represents csv data. In Postman, this works perfectly – the response is shown in csv form in the result window and it
Continue reading