hacklone / angular-cool Goto Github PK
View Code? Open in Web Editor NEWCool libraries for angular
Cool libraries for angular
Hi,
Is there a way for us to do validation for the input when using cool inline edit? Like maxLenth, pattern?
Thanks
Opening the edit file produces the following error:
core.js:6228 ERROR Error: Global icon library is deprecated. Consult https://github.com/FortAwesome/angular-fontawesome/blob/master/UPGRADING.md for the migration instructions.
Will the package be supported to work with the Ivy distribution of angular?
Hi,
I am trying to use inline edit field in a lazy loaded module and there is an error:
ERROR Error: Uncaught (in promise): Error: BrowserModule has already been loaded. If you need access to common directives such as NgIf and NgFor from a lazy loaded module, import CommonModule instead.
Could you please update the imports from BrowserModule to CommonModule?
Thank you
Hi,
At this time the right tag for facebook button is :
<cool-cool-facebook-button color="dark" (click)=""> Login with Google </cool-cool-facebook-button>
Need a double cool.
In cool-facebook-button.component.ts , selector is mispelled.
@Component({ selector: 'cool-cool-facebook-button',.... })
More Cool Social buttons would be nice, buttons for the social logins from firebase would be cool
I am trying to use this package in an http interceptor, and then I was getting some errors and now I verify that the value coming from the CoolLocalStorage service returns null.
// interceptor
import { Injectable } from '@angular/core';
import { HttpRequest, HttpHandler, HttpEvent, HttpInterceptor } from '@angular/common/http';
import { Observable } from 'rxjs';
import { CoolLocalStorage } from '@angular-cool/storage';
@Injectable()
export class TokenInterceptor implements HttpInterceptor {
constructor(private _localStorage: CoolLocalStorage) {}
public intercept(request: HttpRequest<unknown>, next: HttpHandler): Observable<HttpEvent<unknown>> {
return next.handle(this.addAuthToken(request));
}
public addAuthToken(request: HttpRequest<any>) {
const token = this._localStorage.getItem('token');
console.log(localStorage.getItem('token'));
return request.clone({
setHeaders: {
Authorization: `Bearer ${token ?? 'none'}`,
},
});
}
}
// app.module.ts
import { NgModule } from '@angular/core';
import { CoolStorageModule } from '@angular-cool/storage';
@NgModule({
imports: [
// others imports
CoolStorageModule.forRoot(),
]
})
export class AppModule {}
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.