Search This Blog

Showing posts with label AngularJS. Show all posts
Showing posts with label AngularJS. Show all posts

Monday, February 20, 2017

How to Create a Simple Alert using AngularJs on Button Click

First create a simple button which contains an ng-click Event:

<input id="btnTest" type="button" value="Show Alert" ng-click="ShowAlert()" />

 var app = angular.module('MyApp', []);
            app.controller('MyController', function ($scope, $window) {
                $scope.ShowAlert = function () {                   
                    $window.alert("Hello World");
                }
            });

From this method it will display the alert box.


Thank you, 


Restricting Custom People Picker to only one Sharepoint group programatically

Refer the following script files in your page,     <!-- For People Picker -->     <script type="text/javascript" src...