Skip to content
This repository was archived by the owner on Feb 26, 2024. It is now read-only.

Proposal: change name of default comment insertion #111

Open
@0x-r4bbit

Description

@0x-r4bbit

When setting up a super simple scenario with the new router like this:

var app = angular.module('myApp', ['ngNewRouter']);

app.controller('AppController', function ($router) {
  $router.config([
    {
      path: '/',
      component: 'welcome'
    }
  ]);
});

app.controller('WelcomeController', function () {
  ...
});

And a template like this:

<body ng-app="myApp" ng-controller="AppController">
  <router-view-port></router-view-port>
</body>

There's no specified component name in the template which ends up in a compiled comment insertion like this:
screen shot 2015-02-18 at 15 57 50

Where undefined is prolly the value of either router-view-port="" or view-port-name="", which is undefined if there's no name given. However, the term undefined makes it look a bit broken to me (even if it actually isn't). So I wonder if we want to change that to something more declarative like default.

Wdyt?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions