assisrafael / assisrafael/angular-input-masks

On undefined, CNPJ dosen`t update SCOPE

Open
#110 4 comments 0 reactions 0 assignees View on GitHub
bug
Dominant language
JavaScript
Stars
955
Forks
329
PR merge metrics
No merged PRs in 30d

Description

On pre-populated inputs, if scope has cnpj model equals a undefined, the scope is not being updated.

ref.: ui-br-cnpj-mask

// scope with data from MYSQL

```
console.log($scope.loja)
```

```
Object {
CNPJ: undefined
IDCidade: "193"
IDCliente: 2
IDLoja: 1
NomeLoja: "BROOKLIN"
StatusLoja: "ativa"
}
```

// html

```

```
##

---
Want to back this issue? **[Post a bounty on it!](https://www.bountysource.com/issues/25441852-on-undefined-cnpj-dosen-t-update-scope?utm_campaign=plugin&utm_content=tracker%2F1022469&utm_medium=issues&utm_source=github)** We accept bounties via [Bountysource](https://www.bountysource.com/?utm_campaign=plugin&utm_content=tracker%2F1022469&utm_medium=issues&utm_source=github).

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.