tags | ||
---|---|---|
|
@{
// code blocks
}
statements like counter++
do not need any special markings or @ symbols in front of them.
however you can do @(variable)
to place a variable only on the page.
This one can be tricky as it's a VS bug/issue
data = {
category: category,
type: type,
typeCode: typeCode,
documentCounter: '@(documentCounter)'
};
You must put the ' apostrophes around the var or VS will say it's an error.