AngularJS template
How do I make an angularjs template?
What is a angularjs template? How do you make a angularjs template? This script and codes were developed by Lorenzo D'Ianni on 29 September 2022, Thursday.
AngularJS template - Script Codes HTML Codes
<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>AngularJS template</title> <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/meyer-reset/2.0/reset.min.css"> <style> /* NOTE: The styles were added inline because Prefixfree needs access to your styles and they must be inlined if they are on local disk! */ .menu-item { border-bottom: 1px solid #eee;
}
.menu-item:last-child { border-bottom: none;
}
.menu-item-link { text-decoration: none; position: relative; display: block; color: rgba(0, 0, 0, 0.87); padding: 16px;
}
.menu-item-link.active { background-color: red;
}
.menu-item-link:hover { color: rgba(0, 0, 0, 0.87); background-color: rgba(0, 0, 0, 0.02);
}
#page { width: 100%; padding: 24px;
}
.menuBtn { background-color: transparent; border: none; height: 38px; margin: 16px 0 0 16px; width: 36px;
}
md-toolbar h1 { font-weight: normal;
}
md-list .md-button { color: inherit; font-weight: 500; text-align: left; width: 100%;
}
/* Using Data-URI converted from svg until <md-icon> becomes available
https://github.com/google/material-design-icons
*/
.menuBtn { background: transparent url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiB2ZXJzaW9uPSIxLjEiIHg9IjBweCIgeT0iMHB4IiB3aWR0aD0iMjRweCIgaGVpZ2h0PSIyNHB4IiB2aWV3Qm94PSIwIDAgMjQgMjQiIGVuYWJsZS1iYWNrZ3JvdW5kPSJuZXcgMCAwIDI0IDI0IiB4bWw6c3BhY2U9InByZXNlcnZlIj4KPGcgaWQ9IkhlYWRlciI+CiAgICA8Zz4KICAgICAgICA8cmVjdCB4PSItNjE4IiB5PSItMjIzMiIgZmlsbD0ibm9uZSIgd2lkdGg9IjE0MDAiIGhlaWdodD0iMzYwMCIvPgogICAgPC9nPgo8L2c+CjxnIGlkPSJMYWJlbCI+CjwvZz4KPGcgaWQ9Ikljb24iPgogICAgPGc+CiAgICAgICAgPHJlY3QgZmlsbD0ibm9uZSIgd2lkdGg9IjI0IiBoZWlnaHQ9IjI0Ii8+CiAgICAgICAgPHBhdGggZD0iTTMsMThoMTh2LTJIM1YxOHogTTMsMTNoMTh2LTJIM1YxM3ogTTMsNnYyaDE4VjZIM3oiIHN0eWxlPSJmaWxsOiNmM2YzZjM7Ii8+CiAgICA8L2c+CjwvZz4KPGcgaWQ9IkdyaWQiIGRpc3BsYXk9Im5vbmUiPgogICAgPGcgZGlzcGxheT0iaW5saW5lIj4KICAgIDwvZz4KPC9nPgo8L3N2Zz4=) no-repeat center center;
} </style> <script src="https://cdnjs.cloudflare.com/ajax/libs/prefixfree/1.0.7/prefixfree.min.js"></script>
</head>
<body> <html lang="en" ng-app="AngularApp"> <head> <link rel="stylesheet" href="https://ajax.googleapis.com/ajax/libs/angular_material/0.8.3/angular-material.min.css"> <link rel="stylesheet" href="https://fonts.googleapis.com/css?family=RobotoDraft:300,400,500,700,400italic"> <meta name="viewport" content="initial-scale=1" /> </head> <body layout="column" ng-controller="AppCtrl"> <md-toolbar layout="row"> <button ng-click="toggleSidenav('left')" hide-gt-sm class="menuBtn"> <span class="visually-hidden">Menu</span> </button> <h1 class="md-toolbar-tools" layout-align-gt-sm="center">Angular</h1> </md-toolbar> <div layout="row" flex> <md-sidenav layout="column" class="md-sidenav-left md-whiteframe-z2" md-component-id="left" md-is-locked-open="$mdMedia('gt-sm')"> <nav class="manu"> <ul class="menu-ul"> <li class="menu-item"><a class="menu-item-link" href="#/home" md-ink-ripple>Home</a></li> <li class="menu-item"><a class="menu-item-link" href="#/works" md-ink-ripple>Works</a></li> <li class="menu-item"><a class="menu-item-link" href="#/about" md-ink-ripple>About</a></li> <li class="menu-item"><a class="menu-item-link" href="#/contact" md-ink-ripple>Contact</a></li> </ul> </nav> </md-sidenav> <div ng-view id="page" layout="column"></div> </div> <!-- Angular Material Dependencies --> <script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.3.15/angular.min.js"></script> <script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.3.15/angular-animate.min.js"></script> <script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.3.15/angular-route.min.js"></script> <script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.3.15/angular-aria.min.js"></script> <script src="https://ajax.googleapis.com/ajax/libs/angular_material/0.8.3/angular-material.min.js"></script> </body>
</html> <script src='http://cdnjs.cloudflare.com/ajax/libs/jquery/2.1.3/jquery.min.js'></script> <script src="js/index.js"></script>
</body>
</html>
AngularJS template - Script Codes CSS Codes
.menu-item { border-bottom: 1px solid #eee;
}
.menu-item:last-child { border-bottom: none;
}
.menu-item-link { text-decoration: none; position: relative; display: block; color: rgba(0, 0, 0, 0.87); padding: 16px;
}
.menu-item-link.active { background-color: red;
}
.menu-item-link:hover { color: rgba(0, 0, 0, 0.87); background-color: rgba(0, 0, 0, 0.02);
}
#page { width: 100%; padding: 24px;
}
.menuBtn { background-color: transparent; border: none; height: 38px; margin: 16px 0 0 16px; width: 36px;
}
md-toolbar h1 { font-weight: normal;
}
md-list .md-button { color: inherit; font-weight: 500; text-align: left; width: 100%;
}
/* Using Data-URI converted from svg until becomes available
https://github.com/google/material-design-icons
*/
.menuBtn { background: transparent url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiB2ZXJzaW9uPSIxLjEiIHg9IjBweCIgeT0iMHB4IiB3aWR0aD0iMjRweCIgaGVpZ2h0PSIyNHB4IiB2aWV3Qm94PSIwIDAgMjQgMjQiIGVuYWJsZS1iYWNrZ3JvdW5kPSJuZXcgMCAwIDI0IDI0IiB4bWw6c3BhY2U9InByZXNlcnZlIj4KPGcgaWQ9IkhlYWRlciI+CiAgICA8Zz4KICAgICAgICA8cmVjdCB4PSItNjE4IiB5PSItMjIzMiIgZmlsbD0ibm9uZSIgd2lkdGg9IjE0MDAiIGhlaWdodD0iMzYwMCIvPgogICAgPC9nPgo8L2c+CjxnIGlkPSJMYWJlbCI+CjwvZz4KPGcgaWQ9Ikljb24iPgogICAgPGc+CiAgICAgICAgPHJlY3QgZmlsbD0ibm9uZSIgd2lkdGg9IjI0IiBoZWlnaHQ9IjI0Ii8+CiAgICAgICAgPHBhdGggZD0iTTMsMThoMTh2LTJIM1YxOHogTTMsMTNoMTh2LTJIM1YxM3ogTTMsNnYyaDE4VjZIM3oiIHN0eWxlPSJmaWxsOiNmM2YzZjM7Ii8+CiAgICA8L2c+CjwvZz4KPGcgaWQ9IkdyaWQiIGRpc3BsYXk9Im5vbmUiPgogICAgPGcgZGlzcGxheT0iaW5saW5lIj4KICAgIDwvZz4KPC9nPgo8L3N2Zz4=) no-repeat center center;
}
AngularJS template - Script Codes JS Codes
var app = angular.module('AngularApp', ['ngRoute','ngMaterial']);
app
.config(function($routeProvider, $mdThemingProvider) { $routeProvider .when('/home', { template: '<md-content>'+ '<div layout layout-sm="column">'+ '<md-input-container flex>'+ '<label>First Name</label>'+ '<input ng-model="user.name" placeholder="Example: Peter">'+ '</md-input-container>'+ '<md-input-container flex>'+ '<label>Last Name</label>'+ '<input ng-model="user.surname" placeholder="Example: Griffin">'+ '</md-input-container>'+ '</div>'+ '<div layout layout-sm="column">'+ '<md-input-container flex>'+ '<label>Biography</label>'+ '<textarea ng-model="user.biography" columns="1" md-maxlength="450" placeholder="About you..."></textarea>'+ '</md-input-container>'+ '</div>'+ '<md-content>' }) .when('/works', { template: '<div>Works</div>' }) .when('/about', { template: '<div>About</div>' }) .when('/contact', { template: '<div>Contact</div>' }) .otherwise({ redirectTo: '/home' }) $mdThemingProvider.theme('default') .primaryPalette('blue') .accentPalette('yellow');
});
/*app
.controller('UserCtrl', ['$scope', function($scope){ $scope.user = { name: "Peter", surname: "Griffin", biography: "Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum." }
}]);*/
app .controller('AppCtrl', ['$scope', '$mdSidenav', function($scope, $mdSidenav){ $scope.toggleSidenav = function(menuId) { $mdSidenav(menuId).toggle(); };
}]);

Developer | Lorenzo D'Ianni |
Username | lorenzodianni |
Uploaded | September 29, 2022 |
Rating | 3.5 |
Size | 6,104 Kb |
Views | 20,230 |
Find the perfect freelance services for your business! Fiverr's mission is to change how the world works together. Fiverr connects businesses with freelancers offering digital services in 500+ categories. Find Developer!
Name | Size |
Material Design - Animations | 9,001 Kb |
Off Canvas in SASS | 5,680 Kb |
Ng-circle | 3,355 Kb |
Checkbox Style 2.0 - SCSS | 4,075 Kb |
NgEasyModal | 4,159 Kb |
AngularJS - Controller As | 5,584 Kb |
Cards experience | 10,660 Kb |
Smooth Scroll | 3,561 Kb |
Material Design - Switch | 3,282 Kb |
SidebarJS | 3,666 Kb |
Jasper is the AI Content Generator that helps you and your team break through creative blocks to create amazing, original content 10X faster. Discover all the ways the Jasper AI Content Platform can help streamline your creative workflows. Start For Free!
Name | Username | Size |
Subtle site navigation with description | Necks | 3,206 Kb |
Minimelephant | Smashlee | 2,507 Kb |
03 - CSS Variables | Run-time | 2,682 Kb |
CSS3 Selectables with information rollover | Jasonmayes | 9,565 Kb |
A Pen by Huan Nghiem | Nightshade | 10,646 Kb |
Toggling Divs with jQuery | Yying6 | 1,967 Kb |
NAV WPMANAGER | Mstoic | 1,991 Kb |
Mandelbrot Fractal | _Billy_Brown | 2,706 Kb |
TigerWoods Freecodecamp Page | Baileytj | 2,869 Kb |
Basic 3D Fullscreen Transition | Apetrov | 3,270 Kb |
Surf anonymously, prevent hackers from acquiring your IP address, send anonymous email, and encrypt your Internet connection. High speed, ultra secure, and easy to use. Instant setup. Hide Your IP Now!