bindingdirective and the data requested is updated in real time as the status changes.
binding: this tells Angular that we want to use the binding directive
[sys]: this is the system ID we want to connect to. The
indicate that this is an input variable
mod: this is a raw string indicating the driver we would like to reference.
[(value)]: this is the variable that will hold the status value requested
[()]so we can send any changes to the server / device
execwill be called on the device module.
execthis is the function to run on the device module if the status value changes
getthe following resource factories:
/auth/authoritywhich contains information about how to authenticate
oauth-resp.htmlis used to extract the token and save it in local storage
this.systems.setup(config);which kicks off the authentication process as required