Skip to content

Instantly share code, notes, and snippets.

@Dev0515
Dev0515 / cosmic.model.ts
Created September 28, 2018 07:08
Cosmic model file which contains two classes
export class registerModel {
_id: string;
username: string;
email: string;
password: string;
fullName: string;
imageUrl: string;
}
export class blogModel {
@Dev0515
Dev0515 / cosmic.service.ts
Created September 28, 2018 07:00
Main service of the project
import { Injectable } from '@angular/core';
import { Http } from '@angular/http';
import { Router } from '@angular/router';
import {config} from '../../config/cosmo.config'
import {blogModel} from '../models/cosmic.model';
import {registerModel} from '../models/cosmic.model';@Injectable()export class CosmicService {
data;
message;
URL = config.URL;
bucket_slug = config.bucket_slug;