Hi guys, Can someone please guide me on how to add components from the downloaded Metronic package to my Angular solution? I have located all the components in the Metronic (metronic-v4.7.5\metronic_v4.7.5\theme\assets\global\plugins). What I am not quiet sure is if I should import components via the npm or I can simply copy its folder to my solution. With the former method, I noticed that not all components exist in npm. With the latter way of copying the folder content, I don't know where is the proper place within the solution to have it pasted.
Thanks for your tips in advance :)
Hi Guys, Can somebody help with a simple question on how I can implement a 2 way binding on a Date type in Angular 2? I have got property in C# as:
public DateTime StartDate { get; set; }
The following line in Angular 2 does not work!
<input class="form-control" name="startDate" data-provide="datepicker" data-date-format="dd/mm/yyyy" [(ngModel)]="schedule.startDate" />
I noticed that the Swagger has generated the following for the property:
startDate: moment.Moment;
Not sure if I need to do a casting from moment to dateTime. If yes how? I have created a Pipe for date as below:
import { Pipe, PipeTransform } from '@angular/core';
import * as moment from 'moment';
@Pipe({ name: 'datePipe' })
export class DatePipe implements PipeTransform {
transform(date) {
if (date != null) {
let momentdate: moment.Moment = moment(date);
return momentdate.toDate();
}
}
}
But seems we are not allowed to use pipe in [(ngModel)]!
Any thought?
Hi, Can somebody help me finding the location of icons in the ASP.Net zero template? I can see that some icons were used in the side navigation bar such as, "icon-globe" etc. Wonder where these css classes are defined and how I would be able to add more to the icons. I have downloaded all the Metronic library but even in there I could not locate the icons!
Hi, I have already put this question on [https://stackoverflow.com/questions/44937851/restrict-users-to-their-own-entities]) and have received a response but just thought that there might be a feature in the ASPZero product that would take care of it in the better way. Here is the question again: How can we restrict users to their own entities within the Framework? I know that we can check the session Id or include the currentSession in the LINQ query but I kind of wonder if the framework provides a better and efficient way to overcome this?
Regards,
How can we restrict users to their own entities within the Framework? I know that we can check the session Id or include the currentSession in the linq query but I kind of wonder if the framework provides a better and efficient way to overcome this?
I have got a class extending DomainService abstract class as below:
public class ScheduleManager : DomainService, IScheduleManager
The following line does not work:
throw new UserFriendlyException(L("ScheduleIsNotValid"));
because of: Abp.AbpException: Must set LocalizationSourceName before, in order to get LocalizationSource
Just wonder where the proper place if for setting the LocalizationSourceName, like it was set in MyCarParkControllerBase, but in Core (Domain) layer?
By the way the there are 2 usages of localization in the UserRegistrationManager class as:
Line 96 >>> throw new UserFriendlyException(L("UnknownTenantId{0}", tenantId));
Line 101 >>> throw new UserFriendlyException(L("TenantIdIsNotActive{0}", tenantId));
That are failing due to the same issue!
Cheers,
Does the framework support NTLM Authentication? I am looking for a solution to run on a local network with authenticating user without having the user to enter username and password. basically a windows authentication rather than web form authentication.
Thanks :)
Hi, I created a project from your template in ASP.Net Core and Angular 2, including the Module Zero, around 2 weeks ago. Today I noticed in the NuGet Package management that I can upgrade both Abp.Framework and Abp.Zero.Framework from 1.5.1 to 2.0.2 version. Once I did that I got lots of errors and bugs almost everywhere within all defined projects! I had a brief look at the errors, and most them were about some changes in the constructors and other methods signitures. When I downgrade them both to their original versions, all errors disappeared. So here are my wonders:
Regards
Hi, I can see that you have included a template to be created for ASP.Net Core. Nice Job! Just created a sample template and realised lots of things are removed from the template (Angular, Module Zero, Hangfire,...) Is there any specific reason for that or it is temporary and more will be included in the future likewise the ASP.Net MVC 5.0 template one?
Hi, Does the framework support Angular 2? Is there any sample which shows how to read data and manipulate it via Angular 2 using ABP framework?