这是我的组件

从'@ angular / core'导入{Component,OnInit};

@Component({
  selector: 'dm-demo',
  templateUrl: 'http://localhost:99/index.html',
  styleUrls: ['./demo.component.css'],
})
export class DemoComponent implements OnInit {

  constructor() { }

  ngOnInit() {
  }

}

我想在代码中将templateUrl添加为如上所述的HTTP URL . 但无法编译 . Angular编译器给出如下错误

找不到模块:错误:无法解析'E:\ code \ demo \ src \ app \ demo'中的'./http://localhost:99/index.html'

任何人都知道如何实现这一目标吗?