Description
This package is used to interact with the cloud service.
The service allows you to store data in the cloud about the user, groups, authorizations and other data necessary for any site.
It is also possible to create and edit data collections, which can be of any structure.
Send notification email through our cloud service.
Install
npm i sss-core-lib --save
#Usage
Add SssCoreModule
into your app.module.ts
import { SssCoreModule } from "sss-core-lib";
@NgModule({
imports: [SssCoreModule],
})
Component example:
import { Component, OnInit } from '@angular/core';
import { AuthService, ILogin, UserService, IUser } from 'sss-core-lib';
@Component({
selector: 'app-root',
templateUrl: './app.component.html',
styleUrls: ['./app.component.sass']
})
export class AppComponent implements OnInit {
constructor(
private authService: AuthService,
private userService: UserService
) { }
ngOnInit(): void {
this.authService.login('username', 'password').subscribe((login: ILogin) => {
this.userService.get().subscribe((users: IUser[]) => {
console.log(users);
});
});
}
}