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
Public Class CustomUnityDependencyResolver | |
Implements IServiceLocator | |
Private ReadOnly _container As IUnityContainer | |
Public Sub New(ByVal container As IUnityContainer) | |
_container = container | |
End Sub | |
Public Function GetService(ByVal serviceType As Type) As Object Implements IServiceProvider.GetService | |
Return _container.Resolve(serviceType) |
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
angular.module('MyApp').directive("capitalizeFirstLetter", | |
['$', | |
function ($) { | |
return { | |
restrict: 'A', | |
require: 'ngModel', | |
link: function (scope, element, attrs) { | |
var wasCapitalized = false; | |
function capitalizeFirstLetter() { |
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
using System.IO; | |
using System.Text; | |
using System.Web; | |
using System.Web.Mvc; | |
namespace YourProject.RazorExtensions | |
{ | |
public static class AngularJs | |
{ | |
public static IHtmlString RenderAngularViews(this HtmlHelper helper, string relativeViewPath) |
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
var VelosimoUI = { | |
renderTemplate: (placeholder, template, data) => { | |
let templateHtml = document.querySelector(`#${template}`).innerHTML; | |
let renderTemplate = Handlebars.compile(templateHtml); | |
let result = renderTemplate(data); | |
document.querySelector(`#${placeholder}`).innerHTML = result; | |
} | |
} |
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
var Velosimo = { | |
_appName: '', | |
_key: '', | |
_token: '', | |
init: function (name, key, token) { | |
this._appName = name; | |
this._key = key; | |
this._token = token; | |
}, | |
getCases: async function (recordId) { |