Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
speculation = fs.read(jsonPath)
data = """
speculation = #{speculation}
"""
page.evaluateJavaScript data
@ku
Copy link

ku commented Sep 25, 2015

scope = angular.element(DOMELEMENT).scope()
scope.speculation = speculation
scope.$apply()

@ku
Copy link

ku commented Sep 25, 2015

https://cdn.kaizenplatform.net/demo/roi/inject.js の中身が参考になると思います

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment