Bind {{}} in angular {{}}

{
    "nav": [{
        "title": "1",
        "subs": [
            { "txt": "1", "link": "/app/aaa/qualityrank?isp={{$stateParams.isp}}&country={{$stateParams.country}}&province={{$stateParams.province}}&node={{$stateParams.node}}" },
            { "txt": "2", "link": "/app/aaa/qualityrank?isp={{$stateParams.isp}}&country={{$stateParams.country}}&province={{$stateParams.province}}&node={{$stateParams.node}}" },
        ]
    }, {
        "title": "2",
        "subs": [
            { "txt": "2", "link": "/app/aaa/qualityrank?isp={{$stateParams.isp}}&country={{$stateParams.country}}&province={{$stateParams.province}}&node={{$stateParams.node}}" },
        ]
    }, {
        "title": "3",
        "subs": [
            { "txt": "3", "link": "/app/aaa/qualityrank?isp={{$stateParams.isp}}&country={{$stateParams.country}}&province={{$stateParams.province}}&node={{$stateParams.node}}" },
        ]
    }]
}
<ul>
    <li *ngFor="let nav of navs">  // 
        <strong>{{nav.title}}</strong>
        <a *ngFor="let sub of nav.subs" href="{{sub.link}}"> // 
            {{sub.txt}}
        </a>
    </li>
</ul>
How can {{}} in

link be parsed correctly? now it will only be treated as a special character

.
Jul.08,2021

that is just an ordinary string that cannot be parsed. You can calculate the final value


when you define it.

the measured Angular5 correctly parses the
building. Don't consider updating it

.

clipboard.png

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1b36ea0-2ad97.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1b36ea0-2ad97.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?