SHARE
TWEET

Untitled

a guest Nov 1st, 2014 4 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. var app = angular.module('app', []);
  2. app.controller('ctrler', ['$scope', function ($scope, $http) {
  3.         $scope.sunshine = 'it is';
  4.         $scope.magic = function () {
  5.                 thepost = $http.post('api/', {action: "hello"}).
  6.                 success( function (data) {
  7.                         alert(1);
  8.                 })
  9.         }
  10. }]);
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top