Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var app = angular.module('siswa',[]);
- app.controller('siswaController',function($scope){
- var siswanya = [];
- $scope.murid = siswanya;
- $scope.tambah = function(){
- alert('Data berhasil di tambah');
- $scope.murid.push(
- {
- no:$scope.no,
- nama:$scope.nama,
- alamat:$scope.alamat,
- tgl_lahir:$scope.class,
- foto:$scope.foto
- }
- );
- };
- });
- app.controller('PanelController',function($scope){
- $scope.tab = 0;
- $scope.selectTab = function(setTab){
- $scope.tab = setTab;
- };
- $scope.isSelected = function(checkTab){
- return $scope.tab === checkTab;
- };
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement