Why doesn't my simple directive work?
I'm starting to learn Angularjs and I'm writing a simple directive that i can't seem to make work.
(function()
{
"use strict";
var as = angular.module('my.directives',[]);
as.directive('HelloWorld', function(){
return
{
restrict:'AEC',
replace:false,
templateUrl: "assets/angular/app/organisations/partials/helloWorldTemplate.html"
};
});
}());
This is my directive which when run says there is an error at the replace:false,
line. When i remove this line, the line that replaces it then shows the same error.
SyntaxError: unexpected token: ':'[Learn More] directives.js:11:10
Everything i've tried so far doesn't seem to work.