angular filter snippet updated