This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
Summary: | Function with reserved name marked as error inside ng directive | ||
---|---|---|---|
Product: | web | Reporter: | Vladimir Riha <vriha> |
Component: | AngularJS | Assignee: | Petr Pisl <ppisl> |
Status: | NEW --- | ||
Severity: | normal | CC: | ppisl |
Priority: | P4 | ||
Version: | 7.4 | ||
Hardware: | PC | ||
OS: | Linux | ||
Issue Type: | DEFECT | Exception Reporter: |
Description
Vladimir Riha
2013-06-27 08:45:07 UTC
So this is supposed to work??? function new() { } in js editor gives me a warning so I'd assume this is illegal... Nope, since the ng-directive is inside controller's scope, the function is declared $scope.new = function(){ } I'm not saying it is a good name, but I saw e.g. mongoose (not related JS framework) uses in() and where() as function names. |