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
<template> | |
<div class="modal fade" tabindex="-1" role="dialog" aria-hidden="true"> | |
<div class="modal-dialog modal-dialog-centered" role="document"> | |
<div class="modal-content"> | |
<div class="modal-header"> | |
<h5 class="modal-title">{{ title }}</h5> | |
</div> | |
<div class="modal-body"> | |
<p>{{ message }}</p> | |
</div> |
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 id="dynamicexample"> | |
<h3>Scroll down inside this section ↓</h3> | |
<p v-pin:[direction]="200">I am pinned onto the page at 200px to the left.</p> | |
</div> | |
Vue.directive('pin', { | |
bind: function (el, binding, vnode) { | |
el.style.position = 'fixed' | |
var s = (binding.arg == 'left' ? 'left' : 'top') | |
el.style[s] = binding.value + 'px' | |
} |
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 express from 'express'; | |
import { NestFactory } from "@nestjs/core"; | |
import { ExpressAdapter } from "@nestjs/platform-express"; | |
import { ApiModule } from "./nest/ApiModule"; | |
import { INestApplication, Injectable, NestMiddleware } from "@nestjs/common"; | |
@Injectable() | |
export class AppMiddleware implements NestMiddleware { | |
private nestInstance: INestApplication | undefined; |