soulwire/sketch.js

Angular

Closed this issue · 4 comments

upq commented

Any usage with angular example?

Can you please explain a bit ?

There are lot of examples available online with angular
Angular Example
The above is a good example.

upq commented

Really?
I used the very basic example from codepen in my angular app, 2 issues were there,

  1. You have to destroy the instance your self because it doesnt get destroyed with state change (ui-router) and causes huge memory leak.
  2. Using the angular $window you get undefined for one of the arrays that gets created with Sketch.create (can't remember which one that was 10 days ago .....) anyway when I initiated an empty array with the same name everything goes fine, and using the normal window object doesn't work.

and thanks for the angular hello world example.

I am sorry buddy..

I thought you were looking for a basic angular example .

upq commented

You thought I was looking for angular hello world example in the Sketch.js repo.....??
If so I'm really speechless... and wish you a good luck... some really good luck!.