What is the recommended approach for implementing the dot notation required by Angular models when your actual model does not have them?
My models are created on the server by Python/Django, the inputs required to edit certain properties often require a more advanced control than the standard HTML inputs. So I would obviously create a directive to perform these duties. The problem is that for directives to keep everything synced you must follow the "dot rule". So this would require you to set the isolated scope of your directive to an object that has a property. However, if the directive is created to work on a property not an object there is no dot notation for it to use.
What are the choices here?
To change the server code to return an unnecessary additional property to appease Angular?
Write a messy wrapper to watch the actual property and add that to an object so that Angular can keep track of it (and do the same in reverse to update the real property when the property of the wrapper object is changed)?
Or am I missing something obvious?
Thanks,
Paul