This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { NgModule } from '@angular/core'; | |
import { CommonModule } from '@angular/common'; | |
import { EditorComponent } from './editor/editor.component'; | |
@NgModule({ | |
imports: [ | |
CommonModule | |
], | |
declarations: [EditorComponent], | |
exports: [ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
interface Options { | |
autoDownloadFontAwesome?: boolean; | |
autofocus?: boolean; | |
autosave?: AutoSaveOptions; | |
blockStyles?: BlockStyleOptions; | |
element?: HTMLElement; | |
forceSync?: boolean; | |
hideIcons?: string[]; | |
indentWithTabs?: boolean; | |
initialValue?: string; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import * as SimpleMDE from 'simplemde'; // MUST NPM INSTALL @types/[email protected] | |
export class MarkdownEditorOptions implements SimpleMDE.Options { | |
autoDownloadFontAwesome?: boolean; | |
autofocus?: boolean; | |
autosave?: SimpleMDE.AutoSaveOptions; | |
blockStyles?: SimpleMDE.BlockStyleOptions; | |
element?: HTMLElement; | |
forceSync?: boolean; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { NgModule } from '@angular/core'; | |
import { CommonModule } from '@angular/common'; | |
import { EditorComponent } from './editor/editor.component'; | |
import { MarkdownEditorOptions } from './markdownEditorOptions'; | |
@NgModule({ | |
imports: [ | |
CommonModule | |
], |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { | |
ModuleWithProviders, | |
NgModule, | |
Optional, | |
SkipSelf | |
} from '@angular/core'; | |
import { CommonModule } from '@angular/common'; | |
import { MarkdownEditorModule } from './../markdown-editor/markdown-editor.module'; | |
import { MarkdownEditorOptions } from './../markdown-editor/markdownEditorOptions'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { | |
Component, | |
ElementRef, | |
EventEmitter, | |
ViewChild, | |
AfterViewInit, | |
Input, | |
OnDestroy, | |
OnInit, | |
Output, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { Component, OnInit } from '@angular/core'; | |
import { ComponentBase } from 'buildmotion-core'; | |
import { Router } from '@angular/router'; | |
import { LoggingService, Severity } from 'buildmotion-logging'; | |
@Component({ | |
selector: 'app-post', | |
templateUrl: './post.component.html', | |
styleUrls: ['./post.component.css'] | |
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { Observable } from 'rxjs/Observable'; | |
import { ErrorObservable } from 'rxjs/Observable/ErrorObservable'; | |
import 'rxjs/add/observable/throw'; | |
import { Response } from '@angular/http'; | |
import * as rules from 'angular-rules-engine'; | |
import { ActionResult } from 'angular-actions'; | |
import { SecurityActionBase } from './security-action-base.action'; | |
import { Severity } from 'nspire-logging/severity.enum'; | |
import { Credentials } from './../../models/credentials.model'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { Component, Input, OnInit } from '@angular/core'; | |
import {NgbModal, NgbActiveModal} from '@ng-bootstrap/ng-bootstrap'; | |
@Component({ | |
selector: 'app-modal', | |
templateUrl: './modal.component.html', | |
styleUrls: ['./modal.component.css'] | |
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div role="document" class="modal-dialog"> | |
<div class="modal-content"> | |
<div class="modal-header"> | |
<h4 class="modal-title">{{title}}</h4> | |
<button type="button" class="close" aria-label="Close" (click)="activeModal.dismiss('Cross click')"> | |
<span aria-hidden="true">×</span> | |
</button> | |
</div> | |
<div class="modal-body"> | |
<ng-content></ng-content> |
OlderNewer