私はmean.js定型句を使用しています。クライアント側にangular-stripeを含めたいと思います。そのために私は角ストライプをインストールしました。これはnode_modulesで利用できます。角度 - モジュールが利用できません
は今
(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;
}
());
を次のように私は私のコードでそれを追加したいことは
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.
メインのapp.jsが読み込まれる前に角ストライププラグインを含めましたか? –
最初にあなたのプロジェクトにプラグインAngle-Stripeと.jsファイルが含まれていることを確認してください。 –