Why doesn't the angular directive work when bracket follow under return?
app.directive("alert", function () {
return
{
restrict: "EA",
template: "<div>Alert!!</div>"
};
});
But does work when the bracket is adjacent to the return:
app.directive("alert", function () {
return {
restrict: "EA",
template: "<div>Alert!!</div>"
};
});