ionicアプリ(cordova)にAdMob広告を挿入する
ionicで作成したHTML5アプリにAdMobを挿入しました。
導入でかなりハマってしまったので、手順をまとめておきます。
ionicで作成したHTML5アプリにAdMobを挿入しました。
導入でかなりハマってしまったので、手順をまとめておきます。
When you add some items to the beginning of ng-repeat
ed collection (probably with unshift
method), AngularJS would refresh the view and take your adorable scrollbar to the top of it. Sometimes it can be naughty behaviour to you. So I’ll show you how to fix this problem.
若干ハマるポイントがあったので、記事にしておく。たぶん最もシンプルな設定だと思う。
angular-translateでuseStaticFilesLoaderを使用しており、さらにテストで$httpBackendをインジェクションしている場合、テスト実行時に次のようなエラーが出ると思う。
AngularJSでコントローラからREST APIを叩き、JSONデータを取得することがよくあると思う。バックエンドにモックを使用してJasmineにてテストする方法を備忘録も兼ねて記述しておく。