refactor($compile): improve readability on conditional assignment

Use ternary operator instead of if statement

Closes #5065
refactor(dateFilter): improve readability on conditional assignment

Use ternary operator instead of if statement

Closes #5065
refactor($http): improve readability on conditional assignment

Use ternary operator instead of if statement

Closes #5065
refactor($parse): improve readability on conditional assignment

Use logical OR operator instead of if statement

Closes #5065