How do you escape a space in Angular?

CommaToast

I have an object like this:

foo = {"Foo Bar":"bar","Foo":"Bar"};

In my Jade template I have:

p 1: {{foo.Foo Bar}}
p 2: {{foo.Foo}}

Problem is, the output is:

1: {{foo.Foo Bar}} 
2: Bar

But it should be:

1: bar
2: Bar

Why is this problem happening? How do I fix this?

zs2020

You can access it like this

p 1: {{foo["Foo Bar"]}}

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

How do you escape ' on doctrine?

From Dev

how do you escape a dot?

From Dev

Mermaid CLI - how do you escape characters?

From Dev

How do you escape the @ symbol in jsonpath?

From Dev

How do you conditionally check for an escape character?

From Dev

How do you wipe unpartitioned disk space?

From Dev

How do you escape a '@' symbol within in a url with razor

From Dev

How do you escape strings when writing data Migrations in Phinx?

From Dev

How do you escape a hyphen as character range in a POSIX regex

From Dev

how do you send an escape key stroke to excel vba

From Dev

How do you escape pipe character in bitbucket markdown?

From Dev

In a Hibernate SQL query how do you escape ? character in the field name

From Dev

How do you escape braces {{var}} in a polymer template?

From Dev

How do you escape "}" using roxygen2?

From Dev

How do you 'escape' a username:password pair in a connection string?

From Dev

How do you escape a '@' symbol within in a url with razor

From Dev

In a Hibernate SQL query how do you escape ? character in the field name

From Dev

How do you escape apostrophe in single quoted string in bash?

From Dev

How do you escape special characters in SQL Where clause?

From Dev

How do you escape "}" using roxygen2?

From Dev

How do you escape a single backslash in a formatted python string?

From Dev

Angular2 RegExp escape space

From Dev

How do you fill the horizontal space in a line of flex children?

From Dev

How do you convert screen coordinates to document space in a scaled SVG?

From Dev

How do you make a container fill the space left by another?

From Dev

How do you remove the space taken by an empty paragraph?

From Dev

How do you add a space after the keyword "function" - JS Beautify

From Dev

How do you find the space complexity of recursive functions such as this one?

From Dev

How do you add more space to a Fedora (LVM) partition?

Related Related

  1. 1

    How do you escape ' on doctrine?

  2. 2

    how do you escape a dot?

  3. 3

    Mermaid CLI - how do you escape characters?

  4. 4

    How do you escape the @ symbol in jsonpath?

  5. 5

    How do you conditionally check for an escape character?

  6. 6

    How do you wipe unpartitioned disk space?

  7. 7

    How do you escape a '@' symbol within in a url with razor

  8. 8

    How do you escape strings when writing data Migrations in Phinx?

  9. 9

    How do you escape a hyphen as character range in a POSIX regex

  10. 10

    how do you send an escape key stroke to excel vba

  11. 11

    How do you escape pipe character in bitbucket markdown?

  12. 12

    In a Hibernate SQL query how do you escape ? character in the field name

  13. 13

    How do you escape braces {{var}} in a polymer template?

  14. 14

    How do you escape "}" using roxygen2?

  15. 15

    How do you 'escape' a username:password pair in a connection string?

  16. 16

    How do you escape a '@' symbol within in a url with razor

  17. 17

    In a Hibernate SQL query how do you escape ? character in the field name

  18. 18

    How do you escape apostrophe in single quoted string in bash?

  19. 19

    How do you escape special characters in SQL Where clause?

  20. 20

    How do you escape "}" using roxygen2?

  21. 21

    How do you escape a single backslash in a formatted python string?

  22. 22

    Angular2 RegExp escape space

  23. 23

    How do you fill the horizontal space in a line of flex children?

  24. 24

    How do you convert screen coordinates to document space in a scaled SVG?

  25. 25

    How do you make a container fill the space left by another?

  26. 26

    How do you remove the space taken by an empty paragraph?

  27. 27

    How do you add a space after the keyword "function" - JS Beautify

  28. 28

    How do you find the space complexity of recursive functions such as this one?

  29. 29

    How do you add more space to a Fedora (LVM) partition?

HotTag

Archive