The state 'dash' is experiencing issues with its parameters in ui-router

Setting up a demonstration to highlight an issue I am facing with sibling components and states.

Encountering the following error:

https://i.sstatic.net/uUsF8.png

Not sure what could be causing this, as our current app has it set up like this:

params: {
  ticker: 'AAA'
}

https://plnkr.co/edit/zfmuZXp88cSbdOsibv3y?p=preview

var routerApp = angular.module('routerApp', ['ui.router']);

routerApp.config(function($stateProvider, $urlRouterProvider) {

    $urlRouterProvider.otherwise('/dash');

    var dash = {
      name: 'dash',
      url: '/dash?ticker',
      // params: {
      //   ticker: 'AAA'
      // },
      views: {
        '': { templateUrl: 'partial-dash.html' },
        'tagsList@dash': { 
          templateUrl: 'tags-list.html',
          controller: 'tagsController'
        },
        'tickersList@dash': { 
          templateUrl: 'tickers-list.html',
          controller: 'tickersController'
        }
      }
    };

    $stateProvider
      .state(dash);

});

routerApp.controller('tagsController', function($scope) {

    $scope.tags = [
      'tag 1', 'tag 2', 'tag 3'  
    ];

    $onInit = function() {
      console.log('onInit tagsController');
    };

});

routerApp.controller('tickersController', function($scope, $state) {

    // $scope changeScotchState = function() {
    //     $state.go('about', { scotch: true });
    // };

    $scope.tickers = [
      'AAA', 'BBB', 'CCC'
    ];

    $onInit = function() {
      console.log('onInit tickersController');
      console.log('$state.ticker', $state.params.ticker)
    };

});

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

Guide to using the PUT method in Node.js Express to update a record using the primary key

I'm currently struggling with understanding the proper usage of the put statement in node js. Here is the code I have been using: app.put("/cars/:id", (req, res) => { //retrieving a record based on id (uuid) e.g. http://localhost:3000/cars/a5ad957 ...

What are some solutions for resolving the npm error code elifecycle issue?

After following the documentation, I successfully installed React JS but encountered an error when trying to run the app. The error code displayed was elifecycle npm err errno 1. Can someone please assist me in resolving this issue? Additionally, it's ...

Delay a macro task in the user interface event listener

I created a basic react component and added an onBlur event handler that creates a new macrotask using setTimeout. function App() { const onBlur=()=>{ console.log('onBlur') setTimeout(() => { console.log('setTimeout&apo ...

The GitHub process is ongoing and not ending

I have developed a GitHub workflow that utilizes a node script. To test it, I set it up to run on manual trigger. Below is the code snippet of my workflow file: on: workflow_dispatch: inputs: logLevel: description: 'Log level&apos ...

Challenge with uploading files on IPFS

Currently, I am utilizing the IPFS service for storing files. Through my Node.js application, I can create an IPFS_Node and proceed to upload files using this Node. var ipfs = ipfsClient({ // the hostname (or ip address) of the endpoint provid ...

What is the speed difference between calling functions from require's cache in Node.js and functions in the global scope?

Let's imagine a scenario where we have two files: external.js and main.js. // external.js //create a print function that is accessible globally module.exports.print = function(text) { console.log(text) } Now let's take a look at main.js: ...

Is there a way to create space at the bottom after setting margin to auto?

I'm currently mastering Bootstrap v5.0 and experimenting with creating a webpage using Bootstrap. I've encountered an issue that requires assistance. Specifically, I'm trying to add extra space between two columns on smaller screens while ma ...

Order the results by a predicate chosen by the user and a predefined secondary attribute

Trying to organize a table of results by a user selected criterion and then by a predefined secondary one. For instance, the ng-repeat setup looks like this: <tr ng-repeat="line in model.resultList | orderBy:['-predicate', 'secondary_va ...

Formik Fields with unique key properties

When mapping text fields, I follow this structure: { AddVehicleFields.map(({formikRef, ...input}) => ( <> <TextField key={formikRef} helperText={ getIn(formik.touched, formikRef) ? getIn(formik. ...

Utilize JSON information in Plotly to create dynamic bar charts

I am a beginner using Plotly to create bar graphs. Currently, I am hardcoding the data for the graph. However, I now want to use JSON data to populate the chart. Can someone please guide me on how to parse and utilize JSON data as I am new to this format? ...

Discover the following item using jQuery

Here is some HTML code that I have: <div class="form-group"> <input type="text" class="sequence valid"> </div> <div class="form-group"> <input type="text" class="sequence valid"> </div> <div class="som ...

Tips for managing the 'undefined' error in JavaScript when dealing with constantly changing deeply nested objects

Currently, I am developing a project using React with Formik for form handling and Yup for validation schemas. My current task involves validating a nested form to add a CSS class to the input if there is an error in the respective index of the nested fiel ...

What is the best way to pass a URL in Vue.js methods and activate it on @click event?

Currently, I am working on a Laravel Vue.js project where I am trying to implement a method to redirect to a link upon clicking a div element. The code snippet provided below showcases my approach. When the user clicks on the div, I want them to be direc ...

What causes the selection of the menu item $invalid to always return as true?

I have an HTML form with a select menu: <form name="form"> <select name="gender" ng-model="model" ng-required="true" ng-model-options="{ updateOn: 'mousedown blur'}"> <option value="" disabled>--Select--< ...

Ways to preserve decal placement using Three.js

I am searching for a solution to store and reload the decals generated in this example (source code). The goal is to allow users to save a new splatter they paint and then reload it at a later time. I have attempted various methods, but none have been succ ...

Avoiding Rejected Promise: Warning for Error [ERR_HTTP_HEADERS_SENT] due to Issue with setInterval and Axios.post Error Management

I attempted to address this warning by researching online. Unfortunately, I couldn't find a solution, so I am reaching out with this question. The current warning that I am encountering is: (node:39452) UnhandledPromiseRejectionWarning: Error [ERR_H ...

The name of the controller is not properly registered while loading the HTML via the template

Currently in the process of transitioning my web app from routing through MVC to a Single Page Application (SPA) setup, where all different components are loaded within a single main page. To achieve this, I am utilizing the ngview directive. Below is the ...

Step-by-step guide on inserting a div element or hotspot within a 360 panorama image using three.js

As I work on creating a virtual tour using 360 images, I am looking to include hotspots or div elements within the image that can be clicked. How can I store data in my database from the event values such as angle value, event.clientX, and event.clientY wh ...

What are the steps to rejuvenate a liferay portlet?

I am attempting to create a link that refreshes a Liferay portlet, but unfortunately it is not working as expected: <a href="javascript:Liferay.Portlet.refresh('#p_p_id_portletname')">link</a> Can someone help troubleshoot this i ...

The navigation bar in React Router is interfering with the loading of other components

Currently, I am in the process of setting up a simple navigation bar that consists of basic buttons without any complex functionality. However, I have encountered an issue where placing the navbar inside the switch prevents other components from loading ...