Closed langdonx closed 8 years ago
It's a bug in the template:
https://github.com/wcandillon/swagger-js-codegen/blob/master/templates/angular-class.mustache#L19
Line 31 and 39 need to use this.domain
, assuming they're called correctly and have the correct this
.
I'm guessing not a lot of folks use this for Angular 1? :wink:
getting the same error when trying to generate typescript.
FYI, @wcandillon that fix will still generate bad code for JavaScript angular-class.mustache
has a bug in it (line 31+39 are referencing domain
when they should be referencing this.domain
.
@langdonx can you try in v1.3.3 to check if this is fixed?
Ahh, it does look fixed, sorry! Threw me off that the change wasn't associated w/ the issue.
yes sorry it was my mistake
On Sun, Mar 27, 2016 at 6:01 PM, Langdon Oliver notifications@github.com wrote:
Ahh, it does look fixed, sorry! Threw me off that the change wasn't associated w/ the issue.
— You are receiving this because you were mentioned. Reply to this email directly or view it on GitHub https://github.com/wcandillon/swagger-js-codegen/issues/109#issuecomment-202095671
test.js created from by pasting the Example from
README.md
:Not really sure where to start looking. The word "domain" isn't used in my spec file.
ETA: It looks like it fails linting... when I paste my spec into www.jshint.com, it doesn't produce any errors. Oh, I guess it lints what it generates. Ignoring the errors now to see what the result is.