Question

Looker Embed SDK Angular

  • 8 July 2019
  • 6 replies
  • 1384 views

Hi all,

Has anyone used the Looker Embed SDK with Angular? The example github respository shows using it with Node.js, which is only slightly helpful. Plus, the SDK documentation doesn’t seem to match how it’s being used in the Node.js example.

If anyone has any suggestions, pointers or references how to use the SDK with Angular, that would be very much appreciated!

Thanks,

Doug


6 replies

Userlevel 7
Badge +1

I think the reason we don’t publish an Angular example is because angular typically runs browser-side, and we don’t recommend storing sensitive information like an embed secret in any code that’ll run in other peoples’ browsers.


So you can totally do it, and people totally have, but I think we’re hesitant to endorse that from a security standpoint. As long as you have a library that’s capable of building the signature, you should be able to build the URL without too much trouble.

Hi Izzy,


Thanks for the reply. In my case all I’m doing now is embedding a Look in an Angular page, no longer trying to use the SDK. However it, if you have any other documentation/examples of how to use the Look Visualization system, that would be helpful. I’ve looked at the documentation and find it very confusing. 😦


Doug

Userlevel 7
Badge +1

The documentation that’s currently up at https://docs.looker.com/reference/embed-sdk/embed-sdk-intro describes our new Javascript based Embed SDK— This is different from the scripts in the Github repo: https://github.com/looker/looker_embed_sso_examples, which don’t leverage the prebuilt SDK but instead let you build + sign a URL using whatever native language you’d like.


That’s what we don’t have an angular example of, but looking at the examples would let you reverse engineer it. If anyone has something, share it!

Thanks Izzy, I’ll check into that and how to use it!

Doug

Can someone help with looker embed sdk in angular.

Am getting error like

ERROR in ./node_modules/@looker/sdk/dist/rtl/nodeSettings.js

Userlevel 7
Badge +1

That sounds to me like an installation issue, you may want to try removing the module and then npm/yarn installing it again.

Reply