Skip to content

Instantly share code, notes, and snippets.

View MasoodGit's full-sized avatar

Mohamed Masood Alam MasoodGit

View GitHub Profile
npm install --save react react-dom && npm install --save-dev html-webpack-plugin webpack webpack-dev-server babel-{core,loader} babel-preset-{react,es2015,stage-0} style-loader css-loader
app.directive("panelWidgetResourceSend", ["$http", "$rootScope", "$timeout", function($http) {
return {
restrict: "A",
controller: ["$scope", "$element", function($scope, $element) {
$scope.sent = !1,
$scope.sending = !1,
$scope.failed = !1,
$scope.sendResource = function($event) {
if ($scope.resource) {
if ($scope.resource.$invalid) {