docs(input): `ngModel` uses priority 1
docs(guide/directive): fix typo
refactor($compile): simplify regular expressions

Closes #9637
test($resource): enhance test-case to verify correct behaviour

Previously, the test-case verified that calling `toJson()`, would remove
the `$promise` and `$resolved`, but not that other `$`-prefixed properties
would not be removed.