[webkit] webkit2 API analysis

2023-03-16  

1. The controller gets more data

.controller('searchController', function($scope,$http){
    $scope.works = [1,2,3];
    $scope.doFresh = function () {
      $http.get('2.php')
        .success(function(newWorks){
          $scope.works = newWorks;
        })
        .finally(function(){
          $scope.$broadcast('scroll.refreshComplete');
        });
    };
})

2. Page layout (get data and drop down and refresh)

<ION-VIEW View-Title = "Login"> 
 <ION-CONTENT class = "padding"> 
 <ION-Refresher Pulling-Text = "Pulling down and refresh .." On-Refresh = "DOFRESH ()"> </Ion-Refresher> 
 <ION-LIST> 
 <ION-ITEM NG-Repeat = "Work in Works"> {{{work}}</ion-item>
		</ion-list>
	</ion-content>
</ion-view>

3.App.js To register the page (declare the controller of the corresponding registration page)

.state('search',{
      url:"/search",
      templateUrl:"templates/search.html",
      controller:'searchController'
    })

source

Related Posts

[Establishing Oracle 19C on Oracle Linux 7 -Single instance database based on ASM storage]

GetCookie and SetCookie’s package

Android realizes monitoring and calling and recording it to the local bamboo forest

[244 Issue] The back slope \\ in mysql, too pit! Intersection

[webkit] webkit2 API analysis

Random Posts

HDP 2.4 offline installation post

Thymeleaf calls onClick passing the js function (multi -parameter) writing

The traffic of port 80 was forwarded to 192.168.0.1

Raspberry Pi docker run mysql

H5 Implementation picture upload case