Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var app = angular.module('app', []);
- app.controller('ctrler', ['$scope', function ($scope, $http) {
- $scope.sunshine = 'it is';
- $scope.magic = function () {
- thepost = $http.post('/api', {action: "hello"}).
- success( function (data) {
- alert(1);
- })
- }
- }]);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement