“Possibly unhandled rejection” when closing ngDialog

0 Comments

    Found my solution at: https://github.com/angular/material/issues/10369 When using the openConfirm function use: TypeScript: ngDialog .openConfirm(dialogOptions) .catch(function dialogCloseErrorCallback(reason: any) {         // ngDialog v1.4.0 throws an exception, when closing the dialog with reason “undefined”.         // Prevent

Allow *.css, *.js and *.html from the MVC 5 Views map

0 Comments

  If you want to allow static content to be served from the asp .net MVC 5 views folder, just added the web.config in this folder and change path=”*” to path=”*.cshtml”. https://stackoverflow.com/questions/17949460/how-do-you-request-static-html-files-under-the-views-folder-in-asp-net-mvc   <system.webServer> <handlers>

Fix: TypeScript error Module ‘…’ has no default export

0 Comments

  When I compiled my TypeScript project I got the error: [ts] Module ‘”c:/dev/am/common/element/after-visible”‘ has not default export:   This was caused by the fact, that I forgot to surround “afterVisible” with “{ }”. The

How to use server sorting with jquery datatable

0 Comments

If you are using jquery datatables found at … and you want to display the data as it was returned from the server explicitly set datatable options “order” to: []. https://datatables.net/reference/option/order   $(‘#example’).dataTable( {     “order”: