An Angular 8+ component for Apple Sign In \o/
npm install ngx-apple-signin




| Angular version | NPM version | NPM install command |
|----------------- |------------- |--------------------------------------- |
| 8.x.x | 8.0.3 | npm install ngx-apple-signin@8.0.3 |
| 9.x.x | 9.0.0 | npm install ngx-apple-signin@9.0.0 |
| 10.x.x | 10.0.2 | npm install ngx-apple-signin@10.0.2 |
npm install ngx-apple-signin2 - Declare the library in your main module
``typescript`
import {NgModule} from '@angular/core';
import {BrowserModule} from '@angular/platform-browser';
import { AppleSigninModule } from 'ngx-apple-signin'
@NgModule({
declarations: [...],
imports: [
BrowserModule,
AppleSigninModule
],
bootstrap: [...]
})
export class AppModule {
}
`
3 - Add the Apple JavaScript file in your index.html
html`
[...]
`
4 - Just call the component
html`
[scope]="yourScopeVar"
[clientId]="yourClientIdVar"
color="light"
type="sign up">
`
_4.1 - This is how Color Enum and Type Enum looks like_
typescript``
enum Color {
black = 'black',
light = 'light'
}
enum Type {
SignIn = 'sign in',
SignUp = 'sign up',
Apple = 'apple',
Continue = 'continue'
}
5 - Enjoy it !
------------
To do list:
1. Change the Apple Javascript import to the project itself (step 3 will be deleted)