Quantcast
Channel: Ionic Forum - Latest posts
Viewing all articles
Browse latest Browse all 228595

FileSystem problem - cordova Ionic Application

$
0
0

same problem :

Error: LocalFileSystem is not defined

code

app.controller('AddCtrl', function ($scope, $location, $ionicPlatform) {
  $ionicPlatform.ready(function() {

      $scope.addAss = function () {
            $scope.save();
      };

    $scope.save = function () {
            alert ('ok 1');
            window.requestFileSystem(LocalFileSystem.PERSISTENT, 0, fsReceived, errorHandler);
            $location.path('/');
    };

    var fsReceived = function (fileSystem) {
            alert ('ok 2');
    };

    var errorHandler = function (error) {
    };

  });
});

Viewing all articles
Browse latest Browse all 228595

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>