AngularJS controller failing to run

This is the main content in my index.html file:

<div role="navigation" class="navbar navbar-default navbar-static-top navbar-inverse " data-ng-contoller="NavController">
  <div class="container">
    <div class="navbar-header">
      <button data-target=".navbar-collapse" data-toggle="collapse" class="navbar-toggle" type="button">
        <span class="sr-only">Toggle navigation</span>
        <span class="icon-bar"></span>
        <span class="icon-bar"></span>
        <span class="icon-bar"></span>
      </button>
      <a href="#" class="navbar-brand">Bootstrap theme</a>
    </div>
    <div class="navbar-collapse collapse">
      <ul class="nav navbar-nav">
        <li ng-class="{active: isHome()}"><a href="#/">Home</a></li>
        <li><a href="#about">About</a></li>
        <li><a href="#contact">Contact</a></li>
        <li class="dropdown">
          <a data-toggle="dropdown" class="dropdown-toggle" href="#">Dropdown <b class="caret"></b></a>
          <ul class="dropdown-menu">
            <li><a href="#/editor">New Message</a></li>
            <li><a href="#">List Messages</a></li>
            <li><a href="#">Something else here</a></li>
            <li class="divider"></li>
            <li class="dropdown-header">Nav header</li>
            <li><a href="#">Separated link</a></li>
            <li><a href="#">One more separated link</a></li>
          </ul>
        </li>
      </ul>
    </div><!--/.nav-collapse -->
  </div>
</div>



    <div data-ng-view="" id="main-container" class="container" role="main"></div>

My application starts with the following setup:

define(['app', 'jquery', 'bootstrap', 'angular' ], function(app, jQuery, bootstrap, angular) {
    jQuery('.dropdown-toggle').dropdown();
    require(['domReady!'], function (document) {
         angular.bootstrap(document, ['app']);
    });
});

All other controllers are functioning correctly. It seems that this specific controller is not being recognized by the bootstrap process.

I have verified that all dependencies are loaded using requirejs, and there are no errors in the console (even for the problematic controller). Any suggestions on troubleshooting this issue?

Answer №1

Typographical error detected! I mistakenly wrote contoller instead of controller.

Similar questions

If you have not found the answer to your question or you are interested in this topic, then look at other similar questions below or use the search

Adapting imports in Typescript for seamless npm distribution

Currently, I'm facing an issue with module resolution while compiling my NPM package written in Typescript for publishing. In my project, I've been using non-relative imports to avoid the hassle of excessive ../../../. However, according to TypeS ...

What is the best way to transfer the value of a <span> element to a different <div> using jQuery or JavaScript

Is there a way to move or copy the price and insert it into the <div class="info"> using jQuery? The code I'm currently using is returning an unexpected result of "102030". jQuery(document).ready(function($) { $(document).ready ...

Creating a node.js API that interacts with arrays

Being relatively new to node.js and javascript, I found myself navigating through building an api until the data model suddenly changed, leaving me feeling a bit lost. This snippet shows my code: var mongoose = require('mongoose'); //create s ...

Attempting to programmatically enlarge various div elements using a single function

I am attempting to create a script that allows me to dynamically expand and collapse multiple divs using the same code... The expansion and collapse are triggered by clicking on a span element, and I am aiming to target the next adjacent ID (the div that ...

Adding a see-through Bootstrap Navbar to a Fullpage.js website: A step-by-step guide

I am trying to incorporate a transparent Bootstrap Navbar into my page that is using fullpage.js. The desired outcome is for the navbar to stay on top of the page without affecting the layout of the website content. I have referenced an example here, but ...

What is the best way to trigger a refresh callback on Angular datatable pagination after updating the data

I've successfully set up my angular datatable configuration. Here's what it looks like: vm.dtOptions = DTOptionsBuilder.newOptions(). withPaginationType('full_numbers'). //withOption('ajax', { ...

Json node tabbing

[ { "idn" : "liquido", "categoria": "Aromatizante Ambiental Liquido", "productos": [ { "nombre": "Canela" }, { "nombre": "Chanel" }, { "nombre": "Citrus" }, ...

Detecting flat surfaces using Three.js for any object

Curious about finding flat surfaces of objects in a scene? I am looking to draw PlanGeometry on any detected flat surface near my object, but unsure how to detect them. Any tips or suggestions for libraries that can assist with this? ...

NodeJS Implementation of Faye Websocket

I'm diving into the world of nodeJS and faye / websockets. I've created a datatable using webix and now I want to implement live updates to it. Currently, I am experimenting with Faye, but I'm unsure about what steps to take after receivin ...

Incorporating a message for when no results are found in the jQuery

I currently have a jQuery search script that utilizes the Bing API. The issue I am facing is that when a user performs a search query and no results are found, the page remains blank. How can I insert a message such as "No results found." to prevent the p ...

Is there a way to determine whether a number is lesser, greater, or falls within a specific range of values

Is there a more concise and readable way to write a function that checks if a given number is smaller, larger, or between two other numbers? The function should return NaN if any of the input parameters are not numbers. function order(num, a, b) { if ...

Can Express not use await?

Why am I encountering a SyntaxError that says "await is only valid in async function" even though I am using await inside an async function? (async function(){ 'use strict'; const express = require("express"); const bodyParser = ...

Is there a way to integrate notifications into an HTML page using a plugin or through a specific method?

For my web application, I am looking to implement a unique notification box instead of the traditional message box. A plugin I came across is lobibox, which offers customizable notification pop ups that appear from the side and disappear after a set amount ...

Send table row data from HTML to PHP using AJAX through the POST method

I am facing an issue with transmitting data from a table row to a PHP script using AJAX JavaScript. The scenario is as follows: I have a page displaying results in an HTML table obtained from a query. Each row has a button that, when clicked, opens a light ...

Transferring blank documents to a React-Native server

When attempting to send JSON files to the server using NodeJS with multer, I am running into an issue where the files are being sent empty. Currently, I am utilizing React-native-File-System to iterate through all the files located in the specified folder ...

Is it possible to incorporate a background color into a table using the predefined classes in Bootstrap?

Is there a way to utilize the default color scheme in twitter-bootstrap-3? I attempted using "Active" and "Success" for colors rather than background-color, but it did not work with this code snippet. <table class="table table-bordered background-col ...

Javascript is unable to find the ID of an HTML form

Struggling with a basic HTML form and a JavaScript form validator that aims to verify input in the "first name" field. However, I'm having trouble retrieving the first name form value to validate it properly in JS. Below is the relevant HTML code sni ...

Interactive form found on a webpage

Hey there! I'm currently working on a task where I want a form to be displayed when the edit button is clicked. Once the save button in the form is pressed, I want to update my database with the new information. It's crucial that this process hap ...

Tips for painting on canvas by hovering the mouse without clicking

Looking for some help with this code: The HTML: <canvas id="gameCanvas" width="300" height="150" style="border:1px solid #d3d3d3;"> Your browser does not support the HTML5 canvas tag.</canvas> The JS: v ...

Is JavaScript capable of producing different results with the same input?

I am currently revising one of my scripts and have come across a perplexing issue. The variable command is an input, and I conducted the following test with identical regular expressions: var parts = command.match(/([^\s"]+(?=\s*|$))|(".+?")/g); ...