Recently I stumbled upon some code that uses the JST prefix before the template in Angular:
For example:
$routeProvider
.when("/login", {
template: JST["app/templates/login"],
controller: "LoginController"
})
In the past, I would do it like this:
$routeProvider
.when("/login", {
template: "app/templates/login",
controller: "LoginController"
})
What does this JST
mean in an Angular template? And is there any difference between the two styles?
Just for your information - This code comes from an app built with linemanjs
.