Base solution for your next web application

Activities of "ribbo"

For anyone that comes across this thread and would like a workaround.

I had the same issue and needed to suppress the date timezone conversion for some of my dates. On the Angular side I remove the timezone offset before sending and when I get it back from the API for reading.

When you are sending the date to the API run this function on your property and it will remove the timezone offset yourDate.utcOffset(0, true);

When you get the date from the API this will keep it as the date sent without any offset applied yourDate.utc();

By doing this before sending and when you receive you will be saving and reading the dates as they are selected regardless of any timezone settings. Eg. great for Date of Birth which doesn't change based on Timezone settings.

It is not ideal because it requires you to remember to do this anywhere you send\receive this date and open to you forgetting. But it gets the job done while ABP implements the Suppression attribute.

Hope it helps someone, Matt

Thanks, I am ideally looking for using the MVC login via a WebView and collecting the access token from this or some kind of SSO to the app from it. The reason being the SSO is to solution called Strava and using .NET MVC it was easily plugged in. I have already done this with Angular (as social login is much harder with Angular application), I use the MVC application to login and then do a SSO to Angular (using the same method as you use for the public web page).

Any thoughts from the team would be greatly appreciated before I take on the project.

Thanks, Matt

I had a similar requirement for a 3rd party SSO that would only work via MVC. I got around this by using a separate subdomain for Login vs Angular Application. I used MVC application for login and then redirect over to Angular app with SSO token to login the user. Similar process that is being used between Public Website and Angular but in reverse. Wasn't hard to implement and works well.

Ideally I wish login still worked as it did before they moved to full Angular client side login, ie. MVC methods for login that worked tightly with the Angular app. .NET MVC has a LOT more pre-built SSO integrations out there.

Thanks, Matt

Hi, I am reviewing building on top of my application a Xamarin App. But one requirement is social login which I don't believe is implemented?

Would it be possible to use a WebView as the login page of the App, this would use my regular web app login page and then somehow get the token to be used in the App? I haven't worked with the App really yet but want to know if the above is possible in anyway before I even begin on the project.

Thanks, Matt

@bolenton, very interesting. Will be great to hear how you go with it!

Question

Just wanted to say a big thanks to all the ASPNET Zero team for all their work in V5! There is some really really good new things in there and excited to get stuck into it. I have just upgraded my Core\Angular project successfully without too much trouble and so far all working well :)

Just a general keep up the good work post!

Thanks, Matt

Thanks, looks to have fixed the issues. Was only running 15.2 of Visual Studio

Hi, I just downloaded a fresh 4.5.1 project for Angular + Core with Framework 4.6.1 and getting these errors on opening.

Thanks, Matt

Hi, I am having trouble adding the Dropdown PrimeNG to my Angular project. In main.module.ts I added import { DropdownModule } from "primeng/primeng";

and

@NgModule({ imports: [ ..... DropdownModule .....

But when ever I reference in the html component the p-dropdown component I get errors about it now being able to find the ngModel component. Basically it isn't importing properly. Am I missing something I need for the import? eg. <p-dropdown [options]="starredSegments" [(ngModel)]="selectedSegmentChallengeRule" formControlName="segmentCombobox" [filter]="true"></p-dropdown>

Thanks, Matt

Hi, I am using Core + Angular and want to use the Profile 2 page of Metronic. This requires some specific .css files like "profile-2.css". As this needs to go into the Head, how am I best to add this file for a specific page?

Thanks, Matt

Showing 1 to 10 of 37 entries