Categories

Tuesday, April 23, 2024
#919814419350 therichposts@gmail.com
Angularjs

Render Events in fullCalendar with Angularjs

Render Events in fullCalendar with Angularjs

Hello to all, welcome to therichpost.com. In this post, I will tell you, How to Render Events in fullCalendar with Angularjs?

Angularjs and Fullcalendar both are popular in their fields.

Here is the working code for Render Events in fullCalendar with Angularjs:
<!DOCTYPE html>
<html>
<head>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
<link href='https://fullcalendar.io/releases/fullcalendar/3.9.0/fullcalendar.min.css' rel='stylesheet' />
<link href='https://fullcalendar.io/releases/fullcalendar/3.9.0/fullcalendar.print.min.css' rel='stylesheet' media='print' />
<script src='https://fullcalendar.io/releases/fullcalendar/3.9.0/lib/moment.min.js'></script>
<script src='https://fullcalendar.io/releases/fullcalendar/3.9.0/lib/jquery.min.js'></script>
<script src='https://fullcalendar.io/releases/fullcalendar/3.9.0/fullcalendar.min.js'></script>
<script src= "http://ajax.googleapis.com/ajax/libs/angularjs/1.2.26/angular.min.js"></script>
</head>
<body ng-app="myApp">
<div  ng-controller="myCtrl">
    <div id='calendar'></div>
</div>
<script>
var app = angular.module('myApp', []);
app.controller('myCtrl', function($scope) {
     $scope.names = [
        {
          title: 'All Day Event',
          start: '2018-07-19',

        },
        {
          title: 'Long Event',
          start: '2018-07-20'
          
        }
      ];
    console.log($scope.names);
    $('#calendar').fullCalendar({
  events: $scope.names
  });
  });
</script>
</body>
</html>

 If you have any query related to this post, then do comment or you can ask the questions also.

 

therichpost
the authortherichpost
Hello to all. Welcome to therichpost.com. Myself Ajay Malhotra and I am freelance full stack developer. I love coding. I know WordPress, Core php, Angularjs, Angular 14, Angular 15, Angular 16, Angular 17, Bootstrap 5, Nodejs, Laravel, Codeigniter, Shopify, Squarespace, jQuery, Google Map Api, Vuejs, Reactjs, Big commerce etc.

9 Comments

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.