Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

Expressions don't allow function decloration #10418

Closed
Alexsey opened this issue Dec 11, 2014 · 3 comments
Closed

Expressions don't allow function decloration #10418

Alexsey opened this issue Dec 11, 2014 · 3 comments

Comments

@Alexsey
Copy link
Contributor

Alexsey commented Dec 11, 2014

Here is plunker example.
I understand that it's probably by design, but this definitely should also be mentioned in Angular Expressions vs. JavaScript Expressions documentation section

@pkozlowski-opensource
Copy link
Member

Yes, this is definitively by design and won't change. Would you mind sending us a PR with the https://docs.angularjs.org/guide/expression update?

@Alexsey
Copy link
Contributor Author

Alexsey commented Dec 11, 2014

Would be glad to make a PR for this on the nearest weekends

@Alexsey
Copy link
Contributor Author

Alexsey commented Dec 15, 2014

@pkozlowski-opensource could you please look at my PR? It fail some test, but I can`t understand what is wrong

petebacondarwin added a commit that referenced this issue Dec 16, 2014
…ar expressions

add paragraphs about function declaration, comma and void operators and
RegExp to the diff list in the beginning of articule

Closes #10418
Closes #10452
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants