Skip to content

【Angular】在页面打印出json对象 #156

Description

@deepthan

使用json管道:{{ temp | json}}

lol = {
    region: '电一', // 大区
    grade: '黄铜五' // 段位
}

html:


{{lol}} => [object,Object]
{{lol | json}} => {'region': '电一', 'grade': '黄铜五'}

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions