On Thursday, August 7, 2014 1:17:13 AM UTC+2, Martin Genev wrote:
For what I'm doing - generating models and relationships inside of ember by reading the model json files that yo generates.
FWIW, I would not recommend this approach.
1. Not all models are defined via JSON files. Examples: all built-in loopback models like User, Application, Email. Models from loopback components like Installation from loopback-push.
2. Model JSON files do not contain remoting metadata. While you can generate client methods for "standard" data-access methods exposed by LoopBack out of the box,
there is no way how to generate client methods for custom model methods defined in user code, or at least I am not aware of any.
That is the reasons why the loopback-sdk-angular code generator executes the application and reads metadata from runtime.
Miroslav