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 { Directive, ElementRef, HostListener, AfterViewInit } from '@angular/core'; | |
/* | |
* Directive to add 'drag' support to Ngx Bootstrap modals (https://github.com/valor-software/ngx-bootstrap). | |
* Based on this library to enable drag support for an ng-bootstrap modal: https://github.com/mattxu-zz/ngb-modal-draggable | |
* | |
* Enable by adding the directive to the modal-header element, e.g.: | |
* | |
* <div class="modal-header" ngxModalDraggable> </div> | |
*/ |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8" /> | |
<title>File Upload example</title> | |
<link href="/Content/bootstrap.css" rel="stylesheet" /> | |
</head> | |
<body> | |
<form action="api/Upload" method="post"> | |
<div class="form-group"> |
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
var appJs = new ScriptBundle("~/assets/app-js") | |
.Include( | |
"~/assets/scripts/main.js" | |
); | |
appJs.Transforms.Clear(); | |
appJs.Transforms.Add(new ConfigurableJsMinify | |
{ | |
CodeSettings = new CodeSettings | |
{ | |
EvalTreatment = EvalTreatment.MakeImmediateSafe, |