Ich verwende mean.js boilerplate. Ich möchte angular-stripe in meiner Kundenseite einschließen. Dafür habe ich angle-stripe installiert und es steht unter node_modules zur Verfügung.Eckig - Modul nicht verfügbar
Nun würde Ich mag es, in meinem Code hinzufügen, wie folgt
(function() {
'use strict';
angular
.module('myApp', [
'angular-stripe'
])
.config(function (stripeProvider) {
stripeProvider.setPublishableKey('my_key')
})
PaymentController.$inject = ['$scope', '$state', 'Authentication', 'Socket', 'stripe'];
function PaymentController($scope, $state, Authentication, Socket, stripe) {
var vm = this;
}
());
Es führt den Folowing Fehler
Module 'angular-stripe' is not available! You either misspelled the module name or forgot to load it. If registering a module ensure that you specify the dependencies as the second argument.
Haben Sie das eckige-Streifen-Plugin enthalten, bevor Ihre Haupt-app.js lädt? –
liebe zuerst überprüfen Sie haben Plugin angular-Stripe und .js-Datei in Ihrem Projekt enthalten. –