I am trying to follow a github tutorial to stop the build process for typescript and angularjs. I have to be honest, I'm really fighting. I took the project from github and added angularjs to the bower file, the files and the lib directory with the angular.ts file (after setting up jQuery):
var angular= angular;
export = angular;
Unfortunately, when I try to do the following, I was not lucky in registering my application module:
import JQuery = require("../lib/JQuery");
import angular = require("../lib/angular");
class A{
public add(number1:number, number2:number):number{
return number1+number2;
}
public colorBG():void{
var app = angular.module('myapp',[]);
$("body").css({"background-color":"black"})
}
}
export = A;
, angular AMD, AMD, ? gulp , angular.module , -. angular typescript, html? requirejs AMD, tsify/browsify commonjs, . .