Skip to content

Comment on Angular or Backbone: what are startups using?parent

Comments

FYI, you can prefix all of Angular's HTML additions with data-ng-* attribute.

    <my-directive data-ng-model="myModel.foo" compact="true"></my-directive>

That’s true for `ng-model` but is it true for parameters passed in to directives?

When you write directives you can define the attributes into which you pass parameters however you want, including making them HTML spec compliant.

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.