Currently working with version 1.20 rc2 and attempting to incorporate a directive:
var directives = angular.module('directives', ['controllers']);
directives.directive("drink", function()
{
return
{
template: '<div>{{flavor}}</div>',
link: function(scope){
scope.flavor = "cherry";
}
}
});
The directive is invoked in the main JS file
var comsumerApp = angular.module('comsumerApp', ['ngRoute','controllers', 'services', 'directives']);
All controllers and services are functioning properly, but when attempting this, I encounter the following error:
"Uncaught SyntaxError: Unexpected token : "
This is followed by
$injector:modulerr error.
By removing the "drink" directive, the error disappears, indicating an issue with the ":" or similar.
If anyone can provide insight into this problem, it would be greatly appreciated as I am completely stumped.
Thank you.