03 Dec 2014

An angularJs concept about ionic

development No Comments

Since I forget stuff…

It’s worth noting that when a template is rendered, the ng tags are processed at that time.

For example, if you want to use ng-model inside of an ng-repeat:

This does not work:

<input type=“text” ng-model=“settingObject.{{valueName}}”>

But this does:

<input type="text" ng-model="settingObject[valueName]">

This is an important concept because how certain element directives are processed have an impact on the resulting solution.

No Responses to “An angularJs concept about ionic”

Leave a Reply

Currently you have JavaScript disabled. In order to post comments, please make sure JavaScript and Cookies are enabled, and reload the page. Click here for instructions on how to enable JavaScript in your browser.