Pay attention to some of the following in the code given below:
<!DOCTYPE html>
<head>
<title>My AngularJS App</title>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" integrity="sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u" crossorigin="anonymous">
</head>
<body ng-app="myApp" class="container">
<div class="page-header">
<h1>Angular 1 - Angular UI Router</h1>
</div>
<div class="container-fluid">
<div class="row">
<div class="col-sm-3 col-lg-2">
<nav class="navbar navbar-default navbar-fixed-side">
<ul class="nav nav-pills nav-stacked">
<li role="presentation"><a ui-sref="about" ui-sref-active="active">UI Router App</a></li>
<li role="presentation"><a ui-sref="hello" ui-sref-active="active">Say Hello</a></li>
</ul>
</nav>
</div>
<div class="col-sm-9 col-lg-10">
<ui-view></ui-view>
</div>
</div>
</div>
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.6.1/angular.min.js"></script>
<script src="//unpkg.com/angular-ui-router/release/angular-ui-router.min.js"></script>
<script>
angular.module('myApp', ['ui.router']).
config(function($stateProvider) {
$stateProvider
.state({
name: 'about',
url: '/about',
template: '<h3>Its the UI-Router hello world app!</h3>'
})
.state({
name: 'hello',
url: '/hello',
template: '<h3>Hello world. How are you!</h3>'
});
});
</script>
</body>
</html>
Following is how the above code would look like in a web page.
Last updated: 25th Jan, 2025 Have you ever wondered how to seamlessly integrate the vast…
Hey there! As I venture into building agentic MEAN apps with LangChain.js, I wanted to…
Software-as-a-Service (SaaS) providers have long relied on traditional chatbot solutions like AWS Lex and Google…
Retrieval-Augmented Generation (RAG) is an innovative generative AI method that combines retrieval-based search with large…
The combination of Retrieval-Augmented Generation (RAG) and powerful language models enables the development of sophisticated…
Have you ever wondered how to use OpenAI APIs to create custom chatbots? With advancements…