Giter Site home page Giter Site logo

openube / angular-sweetalert Goto Github PK

View Code? Open in Web Editor NEW

This project forked from leftstick/angular-sweetalert

0.0 2.0 0.0 1.21 MB

An angular directive which expose sweetalert in angular way

Home Page: http://leftstick.github.io/angular-sweetalert/

License: MIT License

CSS 51.99% JavaScript 17.66% HTML 30.35%

angular-sweetalert's Introduction

angular-sweetalert

==================

NPM version

An angular service which expose sweetalert in angular way.

Requirements

Install

bower install sweetalert --save
bower install angular-h-sweetalert --save

Import

<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <title>DEMO</title>
    <link rel="stylesheet" type="text/css" href="libs/sweet-alert.css">
</head>
<body>
    <script type="text/javascript" src="libs/sweet-alert.min.js"></script>
    <script type="text/javascript" src="libs/angular.min.js"></script>
    <script type="text/javascript" src="ngSweetAlert.js"></script>
</body>
</html>

Usage

var demo = angular.module('demo', ['hSweetAlert']);

demo.controller('demoController', function($scope, sweet) {
    $scope.basic = function() {
        sweet.show('Simple right?');
    };

    $scope.checkIfShown = function(){
        alert(sweet.isShown());
    };
});

See full featured demo: http://leftstick.github.io/angular-sweetalert/

LICENSE

MIT License

angular-sweetalert's People

Contributors

daniel-franz avatar eduardodemartinigiacomini avatar leftstick avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.