Advertisement
Guest User

Untitled

a guest
Nov 1st, 2014
201
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.27 KB | None | 0 0
  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. }]);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement