I have following code:
Javascript
var app = angular.module('myApp');
const TESTCONST = 'test 1';
app.constant("TEST", {
"TEST1": "test 1"
});
pug
both of this
div(ng-click="changeMessageType(TESTCONST)") Test
and this, don't work:
div(ng-click="changeMessageType(TEST.TEST1)") Test
it will give me undefined.
What is the correct way to do it?