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

Support universal access in angular expressions #404

@IgorMinar

Description

@IgorMinar

It would be nice if we supported universal access to property/methods just like scala. So I could do this:

function Controller() {
  this.foo = '23';
  this.bar = function() { return '23' };
}
// html template
<p>{{foo}} and {{bar}}</p>

note that I didn't have to do bar(), instead I simply bound to bar. It makes no sense to provide access to function reference in angular expressions.

similarly, if we try to assign stuff to bar e.g. {{bar = '24'}}, angular should invoke bar as bar('24'). The same applies to binding bar to input widgets, e.g. <input name="bar"> will call bar and expect it to be jquery style getter/setter.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions