javascript - ng-click function is not working on tabs in AngularJs? -


hello sir have call function list of albums in case ng-click not working no action performed what's wrong in code?

	//our controller code here    /**  	 * @summary: getalbumsbysellerusertypekeyid function, productsalbum list  	 * @param: na  	 * @return: allalbums  	 * @description:  	 */	  	$scope.allalbums = [];  	$scope.sellerusertypekeyid = [];  	$scope.getalbumsbysellerusertypekeyid = function() {  		//enable class fadeanddisable call getalbumsbysellerusertypekeyid() function  		$("#loadingalbums").toggleclass("fadeanddisable", true);  		  		$scope.sellerusertypekeyid = number(auth.usertypekeyid);  		var product_db_ref = firebase.database().ref('datastore/productsalbum');  	  		  		//re-enable class fadeanddisable after response received  		$("#loadingalbums").toggleclass("fadeanddisable", false);  		  		product_db_ref.orderbychild("sellerusertypekeyid").equalto($scope.sellerusertypekeyid)  		.on("value", function(snapshot) {  			 var value = snapshot.val();  			 if(value != null) {  				$scope.allalbums = objtoarray(value);  				//used set album length in album tabs section  				$rootscope.allalbums = $scope.allalbums;  			 }  		});  	}
    <li class="ng-cloak">          <a href="javascript:void(0)" onclick="openpagetab(event, 'createalbum')"          ng-click="getalbumsbysellerusertypekeyid()">          album        <span ng-if="allalbums.length > 0">({{allalbums.length}})</span>       </a>      </li>


Comments

Popular posts from this blog

php - Vagrant up error - Uncaught Reflection Exception: Class DOMDocument does not exist -

vue.js - Create hooks for automated testing -

Add new key value to json node in java -