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
/// <reference path="../references.ts" /> | |
module Common.Framework { | |
"use strict"; | |
export interface IControllerScope<T> extends ng.IScope { | |
vm: T; | |
} | |
export class BaseCtrl { | |
public static $inject = ["$scope"]; |
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
//http://www.asp.net/web-api/overview/security/enabling-cross-origin-requests-in-web-api | |
//Install-Package Microsoft.AspNet.WebApi.Cors | |
public static class WebApiConfig | |
{ | |
public static void Register(HttpConfiguration config) | |
{ | |
// Web API configuration and services | |
config.EnableCors(new EnableCorsAttribute("*", "*", "GET,POST,PUT,DELETE")); | |
NewerOlder