This file contains hidden or 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
| // app-form-base.class.ts | |
| import {Subject, Observable} from "rxjs"; | |
| export class AppFormsBase { | |
| public isSending$: Observable<any>; | |
| public isSendingSubject = new Subject<any>(); | |
| public succeeded$: Observable<any>; | |
| public succeededSubject = new Subject<any>(); | |
| public failed$: Observable<any>; |
This file contains hidden or 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
| // article-form.backend.ts | |
| import {Injectable} from "@angular/core"; | |
| import {IArticle} from "./article-form.interface"; | |
| @Injectable() | |
| export class ArticleFormBackend { | |
| constructor( | |
| // Pass your client here (http, apollo etc..) | |
| ) {} |
This file contains hidden or 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
| // article-form.interface.ts | |
| export interface IArticleForm { | |
| id?: string, | |
| authorId?: string, | |
| title?: string, | |
| description?: string, | |
| content?: string, | |
| published?: boolean | |
| } |
This file contains hidden or 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
| // article-form.model.ts | |
| import {FormGroup, FormControl, Validators} from "@angular/forms"; | |
| import {IArticle} from "./article-form.interface"; | |
| export class ArticleModel { | |
| public id: string; | |
| public authorId: string; | |
| public title: string; | |
| public description: string; |
This file contains hidden or 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
| // article-form.model.ts | |
| import {FormGroup, FormControl, Validators} from "@angular/forms"; | |
| import {IArticle} from "./article-form.interface"; | |
| export class ArticleModel { | |
| public id: string; | |
| public authorId: string; | |
| public title: string; | |
| public description: string; |
This file contains hidden or 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 { Kettle, Cup, Tea, Honey } from '@kitchen/cupboard'; | |
| import { TapWater } from '@kitchen/sink'; | |
| import { Consume, Smile, Feel } from '@life/actions'; | |
| //... | |
| @Input private flavor: String = “Japanese mountain tea”; | |
| ngOnInit() { |
This file contains hidden or 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
| bower_components/* | |
| node_modules/* |
This file contains hidden or 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
| /* | |
| * angular-ui-bootstrap | |
| * http://angular-ui.github.io/bootstrap/ | |
| * Version: 0.13.0 - 2015-05-02 | |
| * License: MIT | |
| */ | |
| angular.module("ui.bootstrap", ["ui.bootstrap.tpls","ui.bootstrap.dropdown","ui.bootstrap.position"]); | |
| angular.module("ui.bootstrap.tpls", []); | |
| angular.module('ui.bootstrap.dropdown', ['ui.bootstrap.position']) |
This file contains hidden or 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
| /* | |
| * Contenteditable placeholder | |
| * ----------------------------------- | |
| * Emulates the behavior of the standerd implementation | |
| * of the input placeholder="text", but can be used on any | |
| * html element that supports focus. | |
| * http://stackoverflow.com/questions/1599660/which-html-elements-can-receive-focus | |
| */ | |
| [contenteditable="true"]:before { |
This file contains hidden or 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
| // Core | |
| // | |
| // Core modules are modules which is already integrated in tavarn | |
| // and can be used with no sweat in the app | |
| // | |
| // Styleguide 1.0.0 | |
| // Logger | |
| // |