Skip to content

Instantly share code, notes, and snippets.

Keybase proof

I hereby claim:

  * I am kseniya292 on github.   * I am kseniya292 (https://keybase.io/kseniya292) on keybase.   * I have a public key ASCAdafnuHYEZneDumfmzk4SdsiMAZOdVsrYsf4vO3pGcgo

To claim this, I am signing this object:

import { Component, OnInit, ViewChild } from '@angular/core';
import { NgxDatatableModule } from '@swimlane/ngx-datatable';
import { Router, ActivatedRoute } from '@angular/router';
import { DatatableComponent } from '@swimlane/ngx-datatable/src/components/datatable.component';
import { PatientService } from '../../patient.service';
@Component({
selector: 'app-patient-list',
import { Injectable } from '@angular/core';
import { Http, Response } from '@angular/http';
import { Observable } from 'rxjs/Observable';
@Injectable()
export class EmailService {
constructor(private http: Http) { }
sendEmail(data) {
import { Component, OnInit } from '@angular/core';
import { FormBuilder, FormControl, FormGroup, Validators } from '@angular/forms';
import { Router, ActivatedRoute } from '@angular/router';
import { ProgressService } from '../progress.service';
import { PatientService } from '../../patient.service';
@Component({
selector: 'app-patient-info',
templateUrl: './patient-info.component.html',
export class AppModule {
public constructor(
private readonly transferState: TransferState,
private readonly store: Store<fromRoot.State>,
) {
const isBrowser = this.transferState.hasKey<any>(NGRX_STATE);
if (isBrowser) {
this.onBrowser();
} else {
@kseniya292
kseniya292 / webpack.server.config.js
Last active May 20, 2018 20:11
Angular Universal Webpack Config File
const path = require('path');
const webpack = require('webpack');
module.exports = {
entry: { server: './server.ts' },
resolve: { extensions: ['.ts', '.js'] },
target: 'node',
// this makes sure we include node_modules and other 3rd party libraries
externals: [/(node_modules|main\..*\.js)/],
output: {
<form>
<md-input-container>
<input mdInput type="text" class="form-control"
required
name="name" #name placeholder="name">
</md-input-container>
<md-input-container>
<input mdInput type="email" class="form-control"
required
name="email" #email placeholder="email">
module.exports = {
create: function (req, res) {
const email = req.body
sails.hooks.email.send(
"sendEmail",
{
Name: email.name,
},
{
module.exports.email = {
service: "Mailgun",
auth: {
user: "[email protected]",
pass: "XXXXXXXXXXXXXXXXXXXXX"
},
from: "email@your-domain",
templateDir: "views/emailTemplates",
testMode: false
}
module.exports = {
attributes: {
from: {
type: 'string'
},
to: {
type: 'string'
},
name: {