Skip to content

Instantly share code, notes, and snippets.

Keybase proof

I hereby claim:

  • I am smohamali on github.
  • I am mohammadali (https://keybase.io/mohammadali) on keybase.
  • I have a public key ASBLzcYaimM8TW_r20JT9sLEn--34C2VE7VQzffu9s9XRAo

To claim this, I am signing this object:

@smohamali
smohamali / controller.js
Created February 19, 2016 04:52
Implementing a close button for an angular-ui popover
someApp.controller('someController', ["$scope", "$uibModal", function ($scope, $uibModal) {
this.close = function() {
angular.element('.popover').hide()
}
}])