Change Profile Picture Not Working
- Lenguaje dominante
- JavaScript
- Estrellas
- 11.3k
- Forks
- 3k
- Métricas de merge de PR
- Sin PR fusionados en 30 d
Descripción
Bcause the parent's $scope can be used in child, but the child's $scope can't be used in parent.
The following code is not working
> blur-admin/src/app/pages/profile/ProfilePageCtrl.js **_line:79_**
```
$scope.getFile = function () {
fileReader.readAsDataUrl($scope.file, $scope)
.then(function (result) {
$scope.picture = result;
});
};
```
> blur-admin/src/app/theme/directives/ngFileSelect.js **_line:8_**
```
function ngFileSelect() {
return {
link: function ($scope, el) {
el.bind('change', function (e) {
$scope.file = (e.srcElement || e.target).files[0];
$scope.getFile();
})
}
}
}
```
Guía de contribución
No hay ninguna guía de contribución indexada para este repositorio
Evaluación
Este issue todavía no se ha evaluado.