How does the ng-switch-when of AngularJs get the value of js on the same page?

 <script>
    var url = location.search;
    var dagl=url.substring(1,2);//dagl2
</script>

<div id="nav-wrapper" >

    <ul id="nav"  ng-controller="NavCtrl" collapse-nav highlight-active>
        <li ng-switch-when="dagl">//2
            <a>
                <div style="background-image: url(../style/img/home/icon_menu.png);width: 25px;height: 25px;margin-right: 20px;float: left" width="23px" height="23px"></div><span></span>
            </a>
            <ul >
                <li><a ui-sref="ybpay/zfToYbSettle"><span>1</span><i class="fa fa-angle-right"></i></a>
                </li>
                <li><a ui-sref="ybpay/zfToYbSettleList"><span>1</span><i class="fa fa-angle-right"></i></a>
                </li>
            </ul>
        </li>
        \
        
        
        
        -sharp-sharp  -sharp-sharp
Apr.05,2021

ng-switch-when= "dagl = = 2"

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-1bee3ab-4616f.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-1bee3ab-4616f.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?