html

  • This indicates that if a user checked this checkbox, all the other checkboxes should also be checked.
  • Now what I want is if a particular user clicks on a checkbox on thead, all the checkboxes of td also be check and all the data of {{data.sonvinid}}

    should be stored in the array in my controller of angularjs.

  • Stack Overflow works best with JavaScript enabled
  • html angularjs checkbox html-table checked
  • var app = angular.module(‘app’,[]) // the app module app.controller(‘tableCtrl’,function($scope){ $scope.storeall = []; $scope.selectAllFlag = false; $scope.getdataintable = [ {sonvinid:1, date : “string” , venuename: “String Name” }, {sonvinid:2, date : “string” , venuename: “String Name” } ]; $scope.checkAllToggle = funciton(){ if(!$scope.selectAllFlag){ $scope.selectAll(); $scope.selectAllFlag = true; }else { $scope.deselectAll(); $scope.selectAllFlag = false; } }; $scope.selectAll = function(){ for (var i = 0 ; i < $scope.data.length ; i++){ $scope.getdataintable[i].selected = true; $scope.storeall.push($scope.data[i].sonvinid); } }; $scope.deselectAll = function(){ for (var i = 0 ; i < $scope.data.length ; i++){ $scope.getdataintable[i].

This is my table,
here I have this line(

Add All Invoice

).
Continue reading “html”

SOLVED Jersey-Spring-Hibernate Maven Project Setup

Jersey-Spring-Hibernate Maven Project Setup  #angularjs #reactjs

  • Customer; public interface CustomerService { String getStringTest(); Customer addCustomer(Customer customer); Customer updateCustomer(int id, Customer customer); Customer deleteCustomer(int id); Customer getCustomerById(int id); List getAllCustomer(); }
  • Autowired; @Path(“customers”) @Consumes(MediaType.APPLICATION_JSON) @Produces(MediaType.APPLICATION_JSON) public class CustomerResource { @Autowired CustomerService customerService; @GET public List getCustomers(){ return customerService.getAllCustomer(); } @GET @Path(“/{customerId}”) public Customer getCustomer(@PathParam(“customerId”) int id){ return customerService.getCustomerById(id); } @POST public Customer saveCustomer(Customer customer){ return customerService.addCustomer(customer); } @PUT @Path(“/{customerId}”) public Customer updateCustomer(@PathParam(“customerId”) int id, Customer customer){ return customerService.updateCustomer(id, customer)
  • Autowired; public class CustomerServiceImpl implements CustomerService { @Autowired private CustomerDao customerDao; @Override public String getStringTest() { return customerDao.getStringTest(); } @Override public Customer addCustomer(Customer customer) { return customerDao.addCustomer(customer); } @Override public Customer updateCustomer(int id, Customer customer) { return customerDao.updateCustomer(id, customer); } @Override public Customer deleteCustomer(int id) { return customerDao.deleteCustomer(id); } @Override public Customer getCustomerById(int id) { return customerDao.getCustomerById(id); } @Override public List getAllCustomer() { return customerDao.getAllCustomer(); } }
  • Autowired; public class CustomerDaoImpl implements CustomerDao { @Autowired SessionFactory sessionFactory; @Override public String getStringTest(){ String save = “Got it”; return save; } @Override public Customer addCustomer(Customer customer) { Session session = sessionFactory.openSession(); Transaction tx = session.beginTransaction(); try{ session.save(customer); tx.commit(); return customer; }catch(Exception e){ tx.rollback(); return null; } } @Override public Customer updateCustomer(int id, Customer cust) { Session session = sessionFactory.openSession(); Transaction tx = session.beginTransaction(); try{ Customer customer = cust; customer.setId(id); session.update(customer); tx.commit(); return customer; }catch(Exception e){ tx.rollback(); return null
  • If you dont want to implement HIBERNATE, than you can omit this two files and in the applicationContext.xml file DELETE the bean with id’s “dataSource” and “sessionFactory”.

I am placing this request, because i couldn’t find any complete solution for JERSEY-SPRING-HIBERNATE setup and configuration. As i went through a lot to problem to find the solution. I thought of sharing my knowledge on creating basic setup, to give a kick start to your project.
You can also refer to my Github project Jersey-Spring-Hibernate-Project
.
Continue reading “SOLVED Jersey-Spring-Hibernate Maven Project Setup”

Introduction To AngularJS Services

Introduction To #AngularJS #Services by @IamJasbeerSingh cc @CsharpCorner  #Framework #App

  • Making separation of concerns possible, i.e. the property of AngularJS. Some examples of the inbuilt Services are $https, $route, $location, $window etc.
  • Let’s use an inbuilt Service to check what will be the benefit and how we can use the Services.
  • We can create the Services, using three ways.
  • By using Service method, we get an instance of a function passed to “module.service” and by using factory method, we get the value, which is returned by invoking the function reference, which is is passed to module.factory.
  • In the article, we have seen how the Services can be created as per use and how can we use inbuilt Services.

This article is about Angular Services. This will give you a brief idea about Angular Services and how can we create our own services.
Continue reading “Introduction To AngularJS Services”

Angular 2

  • We found out that your browser is a little bit old!
  • Unfortunately we are not supporting this browser.
  • Please use one of the browsers below:
  • Chrome
  • Firefox

Learn how to create modern web applications with the successor of Angular.js
Continue reading “Angular 2”

January 2017

  • Start a Meetup Group Start a Meetup Group
  • The Wisconsin .NET Users Group was founded on February 12, 2002 at the launch of Visual Studio.NET.
  • ** The red star on the map shows the meeting entrance.
  • The Wisconsin .NET Users Group’s sole purpose is to bring technology and business people together who are interested in .NET technologies.
  • David has been very active in the developer community, speaking at numerous major conferences, code camps, and user groups around the world; helping to lead user groups; and helping to organize conferences and other geek events.

Presentation:
Angular 2 is a JavaScript framework that helps you build rich, interactive Single Page Applications.
This presentation will cover the basics of Angular 2 and the advantages of TypeScript
Continue reading “January 2017”

Building Mobile Apps with Ionic 2, Angular 2, and TypeScript

  • You’ll learn about using native device features such as geolocation, the device camera, barcode scanner, accelerometer, and more.
  • 0m 59s Installing Ionic 2 1m 47s Starting a New Project 1m 38s Run App with Browser 3m 29s Run App with Emulator 2m 46s Run App on Device 1m 24s Run App with Ionic View 2m 26s Understanding App Structure 3m 43s Platform-specific Display 0m 57s Hello World 2m 37s Summary 1m 16s
  • 2m 42s Finding and Adding Ionic Native Plugins 3m 7s Vibration 3m 50s Geolocation 1m 51s Camera 2m 15s Barcode Scanner 1m 46s Device Motion 2m 41s Local Notifications 2m 40s Integrate SQLite into Your App 7m 41s Summary 2m 6s
  • You’ll be well prepared to start developing your own apps using the Ionic 2 framework.
  • The course will cover screen navigation, working with HTTP, and numerous Ionic 2 components including advanced scenarios.

This code-focused course explores the exciting new Ionic 2 framework and shows how to build mobile apps using Angular 2 and TypeScript.
Continue reading “Building Mobile Apps with Ionic 2, Angular 2, and TypeScript”