Discussion:
[dart-misc] How to make js call from Dart2 ?
sandeep kumar sahoo
2018-11-09 07:31:08 UTC
Permalink
I have followed the steps mentioned in the link(
http://dartdoc.takyam.com/articles/js-dart-interop/#accessing-properties-and-calling-methods)
and am able to run the app without any error but am not able to call the
function that I want to call as am getting the below error.

EXCEPTION: TypeError: Cannot read property 'Symbol(_jsObject)' of undefined
STACKTRACE:
dart:sdk_internal new
package:hyperconverse/src/component/page/notification_reporting_component/notification_component.dart
241:17 showData
package:angular/src/core/zone/ng_zone.dart 178:16 parent.run.dart.fn
dart:sdk_internal run
package:angular/src/core/zone/ng_zone.dart 175:18 [_run]
dart:sdk_internal runGuarded
package:angular/src/core/zone/ng_zone.dart 333:22 runGuarded
package:angular/src/core/linker/app_view.dart 602:40

Please help me to resolve this issue..
Thank you in advance.
--
For more ways to connect visit https://www.dartlang.org/community
---
You received this message because you are subscribed to the Google Groups "Dart Misc" group.
To unsubscribe from this group and stop receiving emails from it, send an email to misc+***@dartlang.org.
To view this discussion on the web visit https://groups.google.com/a/dartlang.org/d/msgid/misc/c58b99df-2fe6-4aa4-9a88-453683769e17%40dartlang.org.
Ryan Gonzalez
2018-11-09 17:42:18 UTC
Permalink
That guide is *incredibly* old. The new, better way is via package:js:
https://pub.dartlang.org/packages/js

--
Ryan (ラむアン)
Yoko Shimomura, ryo (supercell/EGOIST), Hiroyuki Sawano >> everyone else
https://refi64.com/
Post by sandeep kumar sahoo
I have followed the steps mentioned in the link(
http://dartdoc.takyam.com/articles/js-dart-interop/#accessing-properties-and-calling-methods)
and am able to run the app without any error but am not able to call the
function that I want to call as am getting the below error.
EXCEPTION: TypeError: Cannot read property 'Symbol(_jsObject)' of undefined
dart:sdk_internal new
package:hyperconverse/src/component/page/notification_reporting_component/notification_component.dart
241:17 showData
package:angular/src/core/zone/ng_zone.dart 178:16 parent.run.dart.fn
dart:sdk_internal run
package:angular/src/core/zone/ng_zone.dart 175:18 [_run]
dart:sdk_internal runGuarded
package:angular/src/core/zone/ng_zone.dart 333:22 runGuarded
package:angular/src/core/linker/app_view.dart 602:40
Please help me to resolve this issue..
Thank you in advance.
--
For more ways to connect visit https://www.dartlang.org/community
---
You received this message because you are subscribed to the Google Groups
"Dart Misc" group.
To unsubscribe from this group and stop receiving emails from it, send an
To view this discussion on the web visit
https://groups.google.com/a/dartlang.org/d/msgid/misc/c58b99df-2fe6-4aa4-9a88-453683769e17%40dartlang.org
<https://groups.google.com/a/dartlang.org/d/msgid/misc/c58b99df-2fe6-4aa4-9a88-453683769e17%40dartlang.org?utm_medium=email&utm_source=footer>
.
--
For more ways to connect visit https://www.dartlang.org/community
---
You received this message because you are subscribed to the Google Groups "Dart Misc" group.
To unsubscribe from this group and stop receiving emails from it, send an email to misc+***@dartlang.org.
To view this discussion on the web visit https://groups.google.com/a/dartlang.org/d/msgid/misc/CAO41-mMaydduEqLZ0Gdwz82viex4mXhiuNq1-vSAShpFC4z6cA%40mail.gmail.com.
sandeep kumar sahoo
2018-11-10 18:39:43 UTC
Permalink
Post by Ryan Gonzalez
https://pub.dartlang.org/packages/js
--
Ryan (ラむアン)
Yoko Shimomura, ryo (supercell/EGOIST), Hiroyuki Sawano >> everyone else
https://refi64.com/
Post by sandeep kumar sahoo
I have followed the steps mentioned in the link(
http://dartdoc.takyam.com/articles/js-dart-interop/#accessing-properties-and-calling-methods)
and am able to run the app without any error but am not able to call the
function that I want to call as am getting the below error.
EXCEPTION: TypeError: Cannot read property 'Symbol(_jsObject)' of undefined
dart:sdk_internal new
package:hyperconverse/src/component/page/notification_reporting_component/notification_component.dart
241:17 showData
package:angular/src/core/zone/ng_zone.dart 178:16 parent.run.dart.fn
dart:sdk_internal run
package:angular/src/core/zone/ng_zone.dart 175:18 [_run]
dart:sdk_internal runGuarded
package:angular/src/core/zone/ng_zone.dart 333:22 runGuarded
package:angular/src/core/linker/app_view.dart 602:40
Please help me to resolve this issue..
Thank you in advance.
--
For more ways to connect visit https://www.dartlang.org/community
---
You received this message because you are subscribed to the Google Groups
"Dart Misc" group.
To unsubscribe from this group and stop receiving emails from it, send an
To view this discussion on the web visit
https://groups.google.com/a/dartlang.org/d/msgid/misc/c58b99df-2fe6-4aa4-9a88-453683769e17%40dartlang.org
<https://groups.google.com/a/dartlang.org/d/msgid/misc/c58b99df-2fe6-4aa4-9a88-453683769e17%40dartlang.org?utm_medium=email&utm_source=footer>
.
I have used js dedpendency. Could you please share some sample code for its
use it in diff component ?
My requirement is to export a excel sheet from json by clicking a button.

I have a working code for this but I want to use in diff component but not
in app_component.dart.
I have pushed my sample working code to git (
https://github.com/sandeepkumarsahoo/ExportToExcelDemo.git) .

I am getting the error while trying to use it in diff component.Please help
me on this.Thank you in advance
--
For more ways to connect visit https://www.dartlang.org/community
---
You received this message because you are subscribed to the Google Groups "Dart Misc" group.
To unsubscribe from this group and stop receiving emails from it, send an email to misc+***@dartlang.org.
To view this discussion on the web visit https://groups.google.com/a/dartlang.org/d/msgid/misc/2d57a748-edd6-4f4b-8a0d-0a8891d80ac7%40dartlang.org.
Continue reading on narkive:
Loading...