Quantcast
Channel: Ionic Forum - Latest posts
Viewing all articles
Browse latest Browse all 228595

The change of data in controller doesn't update automatically

$
0
0

Then I got some error messages:

ORIGINAL EXCEPTION: Component 'NewPostPage' must have either 'template', 'templateUrl', or '@View' set.
ORIGINAL STACKTRACE:
Error: Component 'NewPostPage' must have either 'template', 'templateUrl', or '@View' set.

In ionic 2, I only have @Page, any idea? My code:

import {Component} from 'angular2/core';

@Component({
  selector: 'pipes',
  changeDetection: 'ON_PUSH'
})

@Page({
  templateUrl: 'build/pages/post/new-post.html'
})

Viewing all articles
Browse latest Browse all 228595

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>