I am using nodeWebKit to create an app that uses folders.
I need to get the path of the folder, but the user should select which paths.
The nw API tells to use: nwdirectory
Doing something like below will not work
<input type="file" ng-model="dirPath" nwdirectory />
Well:
<form ng-submit="addDir()">
<input type="file" ng-model="dirPath" nwdirectory />
<input class="btn-primary" type="submit" value="add">
</form>
I wanted to pass it to:
$scope.dir = []
$scope.addDir = function() {
$scope.dir.push({ path: $scope.dirPath });
}
Of course it always shows nothing. How to do this properly?