We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Why not use this approach (until a proper Angular-specific package arrives)?
/assets/js/
angular.json
moralisAppId
moralisUrl
app.component.ts
import { Component } from '@angular/core'; declare const Moralis: any; export class AppComponent { constructor() { Moralis.initialize(environment.moralisAppId); Moralis.serverURL = environment.moralisUrl; } connect(): void { Moralis.Web3.authenticate().then(function (user:any) { console.log(user.get('ethAddress')); }); } }
app.component.html
<button (click)="connect()">Connect</button>
Seems a lot easier, less confusing than trying to get a node script to run in Angular 11+ without ejecting Webpack. Let me know what you think 👍
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Why not use this approach (until a proper Angular-specific package arrives)?
/assets/js/
angular.json
(projects » architect » build » options » scripts)moralisAppId
+moralisUrl
to environmentsapp.component.ts
:app.component.html
:<button (click)="connect()">Connect</button>
Seems a lot easier, less confusing than trying to get a node script to run in Angular 11+ without ejecting Webpack. Let me know what you think 👍
The text was updated successfully, but these errors were encountered: