anglejs 2 app distファイルを単純なhtmlページとして実行しようとしました。つまり、distフォルダ内のindex.htmlをダブルクリックするだけです。しかし、アプリが動作しない:エラー:angularjs 2:SecurityError:実行に失敗しました
EXCEPTION: Uncaught (in promise): SecurityError: Failed to execute 'replaceState' on 'History': A history state object with URL 'file:///D:/' cannot be created in a document with origin 'null' and URL 'file:///D:/dev/ProxyVoting/ngapp/dist/index.html'.
あなただけのindex.htmlをクリックして、それが動作する以外にすることはできませんが。あなたのページには、サーバ(Apache、node.js、...)を使用せずにアクセスできない必須のファイルが必要です。 – mickdev
@mickdevあなたはページに必要なファイルの種類について説明することができますか?ありがとう。 –
角度2アプリの制作の詳細については、こちらを参照してください。http://stackoverflow.com/a/38765929/7447071 – mickdev