There have been some inquires about how can one use AngularJS for developing custom parts that can run in the ThingWorx environment. To address these inquires I have created a document that describes the process of integrating AngularJS with ThingWorx.
The document attached comes with the source code for the examples presented throughout the document and an extension for AngularJS 1.5.8 and angular-material components.
Feedback is appreciated.
Don't you think that would be a better a approach to build a AngularJS Library for connecting to ThingWorx Services instead, and build everything in AngujarJS environment, Composer Mashups are already bloated with a lot of JS to also include AngularJS + Angular Widgets.
The approach you are proposing is good, but the main reason for creating a way to use AngularJS directly in the Composer is that we cannot provide support for every custom solution built outside of the Composer environment.
In addition to Andrei I want to provide a little more context about why we structured the document like this.
Our typical expectation is that from whatever front-end technology a customer is using, he is capable of doing HTTP REST calls.
So, from this PoV, I would expect also that any AngularJS developer knows to do these calls.
The reason of embedding the AngularJS in composer is to take advantage of all the Mashup Builder goodies - drag and drop, quick save and deploy and so on - basically to use the same familiar ThingWorx environment.
At the end of the day this is the beauty of the platform. You can greatly extend it to match your requirements, while it also allows you to only use parts of it if you want it.
This guide was actually driven by market requirements, as there are companies who have extensive AngularJS knowledge, and we wanted to provide an integration example for that technology.
You are right, actual SDK are for EDGE devices not for Front End.
I'm asking for it becouse it's a normal feature that platforms provide to easily build web apps on top of REST API, some samples: