Skip to content

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

Open
@deepthan

Description

@deepthan

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

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

html:


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

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions