Git Product home page Git Product logo

angular-cool's People

Contributors

barnatoth avatar brucremo avatar dependabot[bot] avatar hacklone avatar sawa-ko avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

angular-cool's Issues

Validation

Hi,
Is there a way for us to do validation for the input when using cool inline edit? Like maxLenth, pattern?

Thanks

Remove dependency on deprecated fontawesome

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.

Error when importing CoolInlineEditFieldModule in a lazy loaded module

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

not so cool facebook button

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',.... })

bug: localstorage values return null in SSR

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 {}

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.